OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:async' show | 5 import 'dart:async' show |
6 Future; | 6 Future; |
7 | 7 |
8 import 'package:fletchc/src/hub/sentence_parser.dart'; | 8 import 'package:fletchc/src/hub/sentence_parser.dart'; |
9 | 9 |
10 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
11 | 11 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 sentence = parseSentence(['help', 'all']); | 102 sentence = parseSentence(['help', 'all']); |
103 print(sentence); | 103 print(sentence); |
104 checkAction('help'); | 104 checkAction('help'); |
105 Expect.isTrue(sentence.prepositions.isEmpty); | 105 Expect.isTrue(sentence.prepositions.isEmpty); |
106 checkTarget(TargetKind.ALL); | 106 checkTarget(TargetKind.ALL); |
107 Expect.isNull(sentence.trailing); | 107 Expect.isNull(sentence.trailing); |
108 | 108 |
109 return new Future.value(); | 109 return new Future.value(); |
110 } | 110 } |
OLD | NEW |