Changeset 903 for trunk/optimizer/tests/aaa.test
- Timestamp:
- Feb 23, 2008, 8:16:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/optimizer/tests/aaa.test
r898 r903 67 67 ctxt add number input.temperature -min 0 -max 1 68 68 ctxt get 69 } {input.temperature -min 0.0 -max 1.0}69 } {input.temperature number -min 0.0 -max 1.0} 70 70 71 71 test aaa-2.2 {add a parameter with a bad type} { … … 87 87 test aaa-2.6 {add doesn't add parameter when there's an error} { 88 88 ctxt get 89 } {input.temperature -min 0.0 -max 1.0}89 } {input.temperature number -min 0.0 -max 1.0} 90 90 91 91 test aaa-2.7 {add a string parameter} { 92 92 ctxt add string input.choice -values {a b c} 93 93 ctxt get input.choice 94 } { -values {a b c}}94 } {string -values {a b c}} 95 95 96 96 test aaa-2.8 {add a string parameter with a missing option} { … … 104 104 test aaa-2.10 {add doesn't add parameter when there's an error} { 105 105 ctxt get 106 } {{input.temperature -min 0.0 -max 1.0} {input.choice -values {a b c}}} 106 } {{input.temperature number -min 0.0 -max 1.0} {input.choice string -values {a b c}}} 107 108 test aaa-2.11 {add another number and return } { 109 ctxt add number input.temporary -min -5 -max 5 110 lsort [ctxt get input.temp*] 111 } {{input.temperature number -min 0.0 -max 1.0} {input.temporary number -min -5.0 -max 5.0}} 112 113 test aaa-2.12 {query -min values for multiple parameters} { 114 lsort [ctxt get input.temp* -min] 115 } {{input.temperature 0.0} {input.temporary -5.0}} 107 116 108 117 # cleanup
Note: See TracChangeset
for help on using the changeset viewer.