Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some test files to generate sensible TAP output, and to test what…
… they're actually testing.
- Loading branch information
Showing
3 changed files
with
12 additions
and
13 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,17 +1,14 @@ | ||
puts "1..6" if 1 | ||
puts "1..5" if 1 | ||
|
||
# comments work! | ||
# | ||
puts "ok 1" | ||
|
||
puts "ok \ | ||
2" | ||
puts "ok 2" ; puts "ok 3" | ||
|
||
puts "ok 3" ; puts "ok 4" | ||
print "ok "; print 1 + 3; print "\n" | ||
|
||
print "ok "; print 1 + 4; print "\n" | ||
|
||
print "ok #{ 2 * 3 }\n" | ||
print "ok #{ 2 * 2 + 1 }\n" | ||
|
||
|
||
|
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,7 +1,9 @@ | ||
puts "1..4" | ||
|
||
a = [ 1, 2 ] | ||
puts 'ok ', a[-2] | ||
puts 'ok ', a.at(-1) | ||
puts 'ok ', a.at(1) + 1 | ||
puts 'ok ', a.at(1) * 2 | ||
puts "ok " + a[-2] | ||
puts "ok " + a.at(-1) | ||
b = a.at(1) + 1 | ||
puts "ok " + b | ||
c = a.at(1) * 2 | ||
puts "ok " + c |
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