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

Unified Diff: tests/corelib_2/reg_exp_cache_test.dart

Issue 2988103002: Reduce number of iterations for the regexp-cache test. (Closed)
Patch Set: Created 3 years, 5 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_2/reg_exp_cache_test.dart
diff --git a/tests/corelib_2/reg_exp_cache_test.dart b/tests/corelib_2/reg_exp_cache_test.dart
index a5bc96cf65d042faa585eba7b75da479997fcd89..a02118c27b2bb1ea6dbe5d95fa670966e406242d 100644
--- a/tests/corelib_2/reg_exp_cache_test.dart
+++ b/tests/corelib_2/reg_exp_cache_test.dart
@@ -8,8 +8,8 @@
import "package:expect/expect.dart";
void main() {
- for (int j = 1; j < 50; j++) {
- for (int i = 0; i < 20 * j; i++) {
+ for (int j = 1; j < 50; j += 4) {
+ for (int i = 0; i < 15 * j; i++) {
var regExp = new RegExp("foo$i");
var match = regExp.firstMatch("foo$i");
Expect.isNotNull(match);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698