| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #library("test_sample_extension"); | 5 library test_sample_extension; |
| 6 | 6 |
| 7 #import("sample_synchronous_extension.dart"); | 7 import 'sample_synchronous_extension.dart'; |
| 8 | 8 |
| 9 // TODO(3008): Run this test automatically on buildbot (dart:3008). | 9 // TODO(3008): Run this test automatically on buildbot (dart:3008). |
| 10 void main() { | 10 void main() { |
| 11 systemSrand(17); | 11 systemSrand(17); |
| 12 var x1 = systemRand(); | 12 var x1 = systemRand(); |
| 13 var x2 = systemRand(); | 13 var x2 = systemRand(); |
| 14 var x3 = systemRand(); | 14 var x3 = systemRand(); |
| 15 Expect.notEquals(x1, x2); | 15 Expect.notEquals(x1, x2); |
| 16 Expect.notEquals(x1, x3); | 16 Expect.notEquals(x1, x3); |
| 17 Expect.notEquals(x2, x3); | 17 Expect.notEquals(x2, x3); |
| 18 systemSrand(17); | 18 systemSrand(17); |
| 19 Expect.equals(x1, systemRand()); | 19 Expect.equals(x1, systemRand()); |
| 20 Expect.equals(x2, systemRand()); | 20 Expect.equals(x2, systemRand()); |
| 21 Expect.equals(x3, systemRand()); | 21 Expect.equals(x3, systemRand()); |
| 22 systemSrand(18); | 22 systemSrand(18); |
| 23 Expect.notEquals(x1, systemRand()); | 23 Expect.notEquals(x1, systemRand()); |
| 24 Expect.notEquals(x2, systemRand()); | 24 Expect.notEquals(x2, systemRand()); |
| 25 Expect.notEquals(x3, systemRand()); | 25 Expect.notEquals(x3, systemRand()); |
| 26 } | 26 } |
| OLD | NEW |