Changeset 178 for trunk/thune/tests
- Timestamp:
- 06/10/06 00:38:50 (3 years ago)
- Location:
- trunk/thune/tests
- Files:
-
- 2 added
- 5 modified
-
run_test (modified) (1 diff)
-
working/99.good (modified) (1 diff)
-
working/99.t (modified) (1 diff)
-
working/parse_block.good (modified) (1 diff)
-
working/parse_block.t (modified) (1 diff)
-
working/reduce.good (added)
-
working/reduce.t (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/tests/run_test
r134 r178 7 7 case `uname` in 8 8 "CYGWIN"*) DIFF='diff -w';; 9 *) DIFF= diff;;9 *) DIFF='diff -a';; 10 10 esac 11 11 -
trunk/thune/tests/working/99.good
r24 r178 1 2 1 5 bottles of beer on the wall, 5 bottles of beer. 3 2 Take one down and pass it around, 4 bottles of beer on the wall. -
trunk/thune/tests/working/99.t
r162 r178 1 1 ; 99 Bottles of Beer 2 2 3 " bottles" :b3 "bottles" :b 4 4 5 5 [ 6 [ 7 "^/" n " bottles of beer on the wall, " n " bottles of beer.^/" 8 "Take one down and pass it around, " (n 1 sub dup :n) 9 b " of beer on the wall.^/" 10 ] 11 [first reduce prin] iter 6 n "bottles of beer on the wall," n 7 "bottles of beer.^/Take one down and pass it around," 8 n dec dup :n b "of beer on the wall.^/" 12 9 ] :verse 13 10 14 11 ;99 :n 15 12 5 :n 16 verse[n 2 gt?] while13 [verse print] [n 2 gt?] while 17 14 18 " bottle" :b verse do15 "bottle" :b verse print 19 16 20 { 21 1 bottle of beer on the wall, 1 bottle of beer. 17 {1 bottle of beer on the wall, 1 bottle of beer. 22 18 Take one down and pass it around, no more bottles of beer on the wall. 23 19 -
trunk/thune/tests/working/parse_block.good
r124 r178 4 4 Minimum: 10 5 5 Fired: torpedo 6 Range: 11 -206 Range: 11 - 20 7 7 [] -
trunk/thune/tests/working/parse_block.t
r124 r178 8 8 prog [to 'fire] parse . 9 9 10 11 [prin a first print] proc :out12 13 10 prog [some[ 14 'min :a int! ("Minimum: " out)15 | 'max :a [int! | decimal!] ("Maximum: " out)16 | 'fire :a word! ("Fired: " out)17 | 'range :a int! int! ("Range: " prin a first prin "-" prin a secondprint)11 'min :a int! (["Minimum:" a/1] print) 12 | 'max :a [int! | decimal!] (["Maximum:" a/1] print) 13 | 'fire :a word! (["Fired:" a/1] print) 14 | 'range :a int! int! (["Range:" a/1 "-" a/2] print) 18 15 ]] parse .
