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

Side by Side Diff: samples/pop-pop-win/test/ppw/test_field.dart

Issue 200723008: samples/poppopwin: upgrade to first-class sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cl comments Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 part of ppw_test; 1 part of ppw_test;
2 2
3 class TestField { 3 class TestField {
4 // This grid 4 // This grid
5 // XXXXX2 5 // XXXXX2
6 // X7X8X3 6 // X7X8X3
7 // X5XXX2 7 // X5XXX2
8 // X32321 8 // X32321
9 // 110000 9 // 110000
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 for(int x = 0; x < f.width; x++) { 68 for(int x = 0; x < f.width; x++) {
69 for(int y = 0; y < f.height; y++) { 69 for(int y = 0; y < f.height; y++) {
70 final i = x + y * f.width; 70 final i = x + y * f.width;
71 final adj = f.getAdjacentCount(x, y); 71 final adj = f.getAdjacentCount(x, y);
72 expect(adj, equals(sample[i])); 72 expect(adj, equals(sample[i]));
73 } 73 }
74 } 74 }
75 } 75 }
76 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698