-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement, document, and test the ?async and ?keepCache commands
Issue #10
- Loading branch information
gahr
committed
Apr 16, 2018
1 parent
c28e5fb
commit 23d5f55
Showing
4 changed files
with
54 additions
and
0 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
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
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
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,23 @@ | ||
# vim: ft=tcl ts=4 sw=4 expandtab: | ||
|
||
tcltest::loadTestedCommands | ||
|
||
tcltest::test query-state-1.2 {query default asynchronous state} -setup { | ||
set r [retcl new] | ||
} -body { | ||
$r ?async | ||
} -result {1} | ||
|
||
tcltest::test query-state-1.2 {query false asynchronous state} -setup { | ||
set r [retcl new] | ||
} -body { | ||
$r -async | ||
$r ?async | ||
} -result {0} | ||
|
||
tcltest::test query-state-1.3 {query true asynchronous state} -setup { | ||
set r [retcl new] | ||
} -body { | ||
$r +async | ||
$r ?async | ||
} -result {1} |