Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: tests/compiler/dart2js_extra/math_lib_test.dart

Issue 11367087: Added nextIntRange to dartvm and dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js_extra/math_lib_test.dart
diff --git a/tests/compiler/dart2js_extra/math_lib_test.dart b/tests/compiler/dart2js_extra/math_lib_test.dart
index 78876886ff3a17d4797c612cc277c65f8c170331..4bcef1c9f02bc98e9de269ae03d23f2b13c3d44f 100644
--- a/tests/compiler/dart2js_extra/math_lib_test.dart
+++ b/tests/compiler/dart2js_extra/math_lib_test.dart
@@ -10,6 +10,7 @@ main() {
Expect.equals(2.25, pow(1.5, 2.0));
int i = new Random().nextInt(256);
+ int r = new Random().nextIntRange(1, 256);
double d = new Random().nextDouble();
bool b = new Random().nextBool();
}

Powered by Google App Engine
This is Rietveld 408576698