Changeset 545 for trunk/src/tcl
- Timestamp:
- Nov 19, 2006, 6:12:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tcl/tests/units.test
r537 r545 78 78 test convert-1.3.2.2 {Rappture::Units::convert, -context invalid} { 79 79 # this test passes for new tcl bindings, fails for old tcl version 80 list [catch {Rappture::Units::convert 5m -context ff} msg] $msg81 } {1 {bad value " ff": should be a recognized unit for Rappture}}80 list [catch {Rappture::Units::convert 5m -context xx} msg] $msg 81 } {1 {bad value "xx": should be a recognized unit for Rappture}} 82 82 83 83 test convert-1.4.0 {Rappture::Units::convert, -to blank} { … … 102 102 test convert-1.4.2.2 {Rappture::Units::convert, -to invalid} { 103 103 # this test passes for new tcl bindings, fails for old tcl version 104 list [catch {Rappture::Units::convert 5m -to ff} msg] $msg105 } {1 {bad value " ff": should be a recognized unit for Rappture}}104 list [catch {Rappture::Units::convert 5m -to xx} msg] $msg 105 } {1 {bad value "xx": should be a recognized unit for Rappture}} 106 106 107 107 #test convert-1.5.0 {Rappture::Units::convert, -units blank} { … … 778 778 } {0 5mmHg} 779 779 780 781 780 #-------------------------------------------------------------------- 781 # Case Insensitive/Sensitive Unit Conversions 782 #-------------------------------------------------------------------- 783 784 test convert_units-5.4.10.1 {Rappture::Units::convert, torr->mmhg} { 785 list [catch {Rappture::Units::convert 5torr -to mmhg} msg] $msg 786 } {0 5mmhg} 787 788 test convert_units-5.4.10.2 {Rappture::Units::convert, ToRr->mmhg} { 789 list [catch {Rappture::Units::convert 5ToRr -to mmhg} msg] $msg 790 } {0 5mmhg} 791 792 test convert_units-5.4.10.3 {Rappture::Units::convert, kpa->PSI} { 793 list [catch {Rappture::Units::convert 5kpa -to PSI} msg] $msg 794 } {0 0.7252PSI} 795 796 test convert_units-5.4.10.4 {Rappture::Units::convert, KPA->PsI} { 797 list [catch {Rappture::Units::convert 5KPA -to PsI} msg] $msg 798 } {0 0.7252PsI} 799 800 test convert_units-5.4.10.5 {Rappture::Units::convert, Cm2/vS->M2/KVUS} { 801 list [catch {Rappture::Units::convert 2Cm2/vS -to M2/KVUS} msg] $msg 802 } {0 2e-07M2/KVUS} 782 803 783 804
Note: See TracChangeset
for help on using the changeset viewer.