Skip to content

Commit

Permalink
Combine the soon to be defunct testml-lite-tml
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Feb 4, 2013
1 parent 51b2bc5 commit 6fcc8e8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 9 deletions.
37 changes: 28 additions & 9 deletions basic.tml
@@ -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.
10 changes: 10 additions & 0 deletions semicolons.tml
@@ -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'

0 comments on commit 6fcc8e8

Please sign in to comment.