| 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 class TokenizerTest { | 5 class TokenizerTest { |
| 6 static void main() { | 6 static void main() { |
| 7 print('start TokenizerTest'); | 7 print('start TokenizerTest'); |
| 8 testSourceLocations(); | 8 testSourceLocations(); |
| 9 testBasics(); | 9 testBasics(); |
| 10 testIncomplete(); | 10 testIncomplete(); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 //print('${token.text} ${TokenKind.kindToString(token.kind)}'); | 108 //print('${token.text} ${TokenKind.kindToString(token.kind)}'); |
| 109 Expect.equals(expected[i], token.text); | 109 Expect.equals(expected[i], token.text); |
| 110 if (kinds != null) { | 110 if (kinds != null) { |
| 111 Expect.equals(kinds[i], token.kind); | 111 Expect.equals(kinds[i], token.kind); |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 var t = tokenizer.next(); | 114 var t = tokenizer.next(); |
| 115 Expect.equals(TokenKind.END_OF_FILE, tokenizer.next().kind); | 115 Expect.equals(TokenKind.END_OF_FILE, tokenizer.next().kind); |
| 116 } | 116 } |
| 117 } | 117 } |
| OLD | NEW |