-
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 and document resultType method, bump version to 0.2.0
To facilitate history navigation, the source file has been renamed so that the current version doesn't appear in the file name and I don't have to move it at each bump. Provide a symlink to the current version to facilitate package require.
- Loading branch information
Showing
5 changed files
with
61 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
retcl.tm |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
tcltest::test pkg-version-1.1 {pkg version is correct} -body { | ||
package require retcl | ||
} -result {0.1.0} | ||
} -result {0.2.0} |
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,33 @@ | ||
tcltest::test resultType-1.1 {set is simple string} -constraints { | ||
serverIsRunning | ||
} -setup { | ||
set r [retcl new] | ||
} -body { | ||
set res [$r set a 12] | ||
set done 0 | ||
after 100 { | ||
set done 1 | ||
} | ||
vwait done | ||
$r resultType $res | ||
} -cleanup { | ||
$r del 12 | ||
$r destroy | ||
} -result {SimpleString} | ||
|
||
tcltest::test resultType-1.2 {set with two params is an error} -constraints { | ||
serverIsRunning | ||
} -setup { | ||
set r [retcl new] | ||
} -body { | ||
set res [$r set a 12 13] | ||
set done 0 | ||
after 100 { | ||
set done 1 | ||
} | ||
vwait done | ||
$r resultType $res | ||
} -cleanup { | ||
$r del 12 | ||
$r destroy | ||
} -result {Error} |