Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine the soon to be defunct testml-lite-tml
- Loading branch information
1 parent
51b2bc5
commit 6fcc8e8
Showing
2 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,37 @@ | ||
# A very basic TestML test document. | ||
# The TestML version directive is required. Switching to semantic versioning | ||
# scheme, for now. | ||
|
||
%TestML 0.1.0 | ||
|
||
# The title of the test. Goes into a special global variable. Variables | ||
# strating with uppercase letter usually belong to TestML. Title may or may | ||
# not be used by a framework, but still nicely self-documenting. | ||
Title = 'A Basic TestML File' | ||
Plan = 3 | ||
|
||
*text.my_lower == *lower | ||
*text.my_upper == *upper | ||
# The Plan global variable indicates the expected number of tests. | ||
Plan = 4 | ||
|
||
# The bridge class will need to support 'uppercase' and 'lowercase' methods. | ||
*text.uppercase == *upper | ||
*text.lowercase == *lower | ||
*lower.uppercase == *upper.lowercase.uppercase | ||
|
||
|
||
# Define 2 data blocks. 'Test One' is the block label. | ||
=== Test One | ||
--- text: I Like Pie | ||
--- lower: i like pie | ||
--- upper: I LIKE PIE | ||
# This block has 3 inline data points. The data has no newline at the end | ||
--- text: I like Pie. | ||
--- upper: I LIKE PIE. | ||
--- lower: i like pie. | ||
|
||
=== Test Two | ||
--- text: I Love Lucy | ||
--- upper: I LOVE LUCY | ||
# This block has no 'upper' point, so will not be used in some tests. These | ||
# data points do have trailing newlines. | ||
--- text | ||
Say it, | ||
Don't spray it. | ||
|
||
# The blank line above doesn't count as text. | ||
--- lower | ||
say it, | ||
don't spray it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Trailing semicolons are allowed, but we only allow one statement per line in | ||
# TestML. | ||
|
||
%TestML 0.1.0 | ||
|
||
Plan = 2; | ||
|
||
'one' == 'one' | ||
'two' == 'two'; | ||
'three' == 'three' |