| OLD | NEW |
| 1 #library('TestUtils'); | 1 library TestUtils; |
| 2 #import('../../pkg/unittest/unittest.dart'); | 2 import '../../pkg/unittest/lib/unittest.dart'; |
| 3 | 3 |
| 4 /** | 4 /** |
| 5 * Verifies that [actual] has the same graph structure as [expected]. | 5 * Verifies that [actual] has the same graph structure as [expected]. |
| 6 * Detects cycles and DAG structure in Maps and Lists. | 6 * Detects cycles and DAG structure in Maps and Lists. |
| 7 */ | 7 */ |
| 8 verifyGraph(expected, actual) { | 8 verifyGraph(expected, actual) { |
| 9 var eItems = []; | 9 var eItems = []; |
| 10 var aItems = []; | 10 var aItems = []; |
| 11 | 11 |
| 12 message(path, reason) => path == '' | 12 message(path, reason) => path == '' |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 return; | 63 return; |
| 64 } | 64 } |
| 65 | 65 |
| 66 expect(false, isTrue, reason: 'Unhandled type: $expected'); | 66 expect(false, isTrue, reason: 'Unhandled type: $expected'); |
| 67 } | 67 } |
| 68 | 68 |
| 69 walk('', expected, actual); | 69 walk('', expected, actual); |
| 70 } | 70 } |
| OLD | NEW |