diff options
Diffstat (limited to 'test/commit.tcl')
| -rw-r--r-- | test/commit.tcl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/commit.tcl b/test/commit.tcl new file mode 100644 index 00000000..745aa5bd --- /dev/null +++ b/test/commit.tcl @@ -0,0 +1,14 @@ +Assert programBall has program code { + Commit { Claim there is a ball at x 100 y 100 } + + When there is a ball at x /x/ y /y/ { + puts "ball at $x $y" + After 10 milliseconds { + Commit { Claim there is a ball at x $x y [expr {$y+1}] } + if {$y > 115} { set ::done true } + } + } +} +Step + +vwait ::done |
