| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE.md file. | |
| 4 | |
| 5 /// Tests for verbs. | |
| 6 library fletch_tests.verb_tests; | |
| 7 | |
| 8 import 'dart:async' show | |
| 9 Future; | |
| 10 | |
| 11 import 'package:expect/expect.dart' show | |
| 12 Expect; | |
| 13 | |
| 14 import 'package:fletchc/src/verbs/help_verb.dart' as help_verb; | |
| 15 | |
| 16 /// Test verifies that the help text is the right shape. | |
| 17 /// | |
| 18 /// The documentation should fit into 80 columns by 20 lines. | |
| 19 /// The default terminal size is normally 80x24. Two lines are used for the | |
| 20 /// prompts before and after running fletch. Another two lines may be | |
| 21 /// used to print an error message. | |
| 22 /// | |
| 23 /// See commonActions in package:fletchc/src/verbs/actions.dart. | |
| 24 Future testHelpTextFormatCompliance() async { | |
| 25 | |
| 26 // The generation of the help text will self check format compliance. | |
| 27 help_verb.generateHelpText(true); | |
| 28 help_verb.generateHelpText(false); | |
| 29 } | |
| OLD | NEW |