| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library markdown.test.utils; | 5 library markdown.test.utils; |
| 6 | 6 |
| 7 import 'package:unittest/unittest.dart'; | 7 import 'package:test/test.dart'; |
| 8 | 8 |
| 9 import 'package:markdown/markdown.dart'; | 9 import 'package:markdown/markdown.dart'; |
| 10 | 10 |
| 11 /// Removes eight spaces of leading indentation from a multiline string. | 11 /// Removes eight spaces of leading indentation from a multiline string. |
| 12 /// | 12 /// |
| 13 /// Note that this is very sensitive to how the literals are styled. They should | 13 /// Note that this is very sensitive to how the literals are styled. They should |
| 14 /// be: | 14 /// be: |
| 15 /// ''' | 15 /// ''' |
| 16 /// Text starts on own line. Lines up with subsequent lines. | 16 /// Text starts on own line. Lines up with subsequent lines. |
| 17 /// Lines are indented exactly 8 characters from the left margin.''' | 17 /// Lines are indented exactly 8 characters from the left margin.''' |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // If one string runs out of non-ignored strings, the other must too. | 87 // If one string runs out of non-ignored strings, the other must too. |
| 88 if (i == a.length) return j == b.length; | 88 if (i == a.length) return j == b.length; |
| 89 if (j == b.length) return i == a.length; | 89 if (j == b.length) return i == a.length; |
| 90 | 90 |
| 91 if (a[i] != b[j]) return false; | 91 if (a[i] != b[j]) return false; |
| 92 i++; | 92 i++; |
| 93 j++; | 93 j++; |
| 94 } | 94 } |
| 95 } | 95 } |
| OLD | NEW |