Ignore:
Timestamp:
Feb 23, 2008, 8:16:38 PM (17 years ago)
Author:
mmc
Message:

Final tweaks on the optimization package. The demo now works properly.
Just run "wish simple.tcl" to see it work.

Fixed the Tool class to work better with the optimizer. The "run"
method now returns the result directly as a Rappture::Library object,
and the Analyzer merely loads the object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/optimizer/tests/aaa.test

    r898 r903  
    6767  ctxt add number input.temperature -min 0 -max 1
    6868  ctxt get
    69 } {input.temperature -min 0.0 -max 1.0}
     69} {input.temperature number -min 0.0 -max 1.0}
    7070
    7171test aaa-2.2 {add a parameter with a bad type} {
     
    8787test aaa-2.6 {add doesn't add parameter when there's an error} {
    8888  ctxt get
    89 } {input.temperature -min 0.0 -max 1.0}
     89} {input.temperature number -min 0.0 -max 1.0}
    9090
    9191test aaa-2.7 {add a string parameter} {
    9292  ctxt add string input.choice -values {a b c}
    9393  ctxt get input.choice
    94 } {-values {a b c}}
     94} {string -values {a b c}}
    9595
    9696test aaa-2.8 {add a string parameter with a missing option} {
     
    104104test aaa-2.10 {add doesn't add parameter when there's an error} {
    105105  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
     108test 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
     113test 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}}
    107116
    108117# cleanup
Note: See TracChangeset for help on using the changeset viewer.