OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 /// Unit tests for markdown. | 5 /// Unit tests for markdown. |
6 #library('markdown_tests'); | 6 #library('markdown_tests'); |
7 | 7 |
8 #import('../lib.dart'); | 8 #import('../lib.dart'); |
9 | 9 |
10 // TODO(rnystrom): Better path to unittest. | 10 // TODO(rnystrom): Better path to unittest. |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 | 797 |
798 // If one string runs out of non-ignored strings, the other must too. | 798 // If one string runs out of non-ignored strings, the other must too. |
799 if (i == a.length) return j == b.length; | 799 if (i == a.length) return j == b.length; |
800 if (j == b.length) return i == a.length; | 800 if (j == b.length) return i == a.length; |
801 | 801 |
802 if (a[i] != b[j]) return false; | 802 if (a[i] != b[j]) return false; |
803 i++; | 803 i++; |
804 j++; | 804 j++; |
805 } | 805 } |
806 } | 806 } |
OLD | NEW |