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

Side by Side Diff: pkg/kernel/test/uint31_pair_map_test.dart

Issue 2548833002: Re-enable kernel unit tests on platforms where they are supported. (Closed)
Patch Set: Also enable hashcode test Created 4 years 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 unified diff | Download patch
OLDNEW
1 import 'dart:math'; 1 import 'dart:math';
2 import 'package:kernel/type_propagation/canonicalizer.dart'; 2 import 'package:kernel/type_propagation/canonicalizer.dart';
3 import 'package:test/test.dart'; 3 import 'package:test/test.dart';
4 4
5 Random random = new Random(12345); 5 Random random = new Random(12345);
6 6
7 main() { 7 main() {
8 test('Uint31PairMap randomized tests', runTest); 8 test('Uint31PairMap randomized tests', runTest);
9 } 9 }
10 10
(...skipping 13 matching lines...) Expand all
24 int candidateValue = candidate.lookup(x, y); 24 int candidateValue = candidate.lookup(x, y);
25 expect(candidateValue, equals(trustedValue)); 25 expect(candidateValue, equals(trustedValue));
26 if (trustedValue == null) { 26 if (trustedValue == null) {
27 int newValue = nextValue++; 27 int newValue = nextValue++;
28 trusted[key] = newValue; 28 trusted[key] = newValue;
29 candidate.put(newValue); 29 candidate.put(newValue);
30 } 30 }
31 } 31 }
32 } 32 }
33 } 33 }
OLDNEW
« no previous file with comments | « pkg/kernel/test/type_unification_test_disabled.dart ('k') | pkg/kernel/test/uint31_pair_map_test_disabled.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698