Changeset 1427 for trunk/lang
- Timestamp:
- Apr 29, 2009, 10:02:27 AM (16 years ago)
- Location:
- trunk/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lang/python/Rappture/PyRpUnits.cc
r1368 r1427 423 423 424 424 static char *kwlist[] = { 425 (char *)"fromVal", 426 (char *)"to", 427 (char *)"units", 428 425 (char *)"fromVal", 426 (char *)"to", 427 (char *)"units", 428 NULL 429 429 }; 430 430 … … 433 433 if (!PyArg_ParseTupleAndKeywords(args, keywds, "ss|s", 434 434 kwlist, &fromVal, &to, &units)) { 435 return NULL; 435 return NULL; 436 436 } 437 437 } -
trunk/lang/tcl/tests/units.test
r1157 r1427 884 884 885 885 #-------------------------------------------------------------------- 886 # Magnetic Field Conversions 887 #-------------------------------------------------------------------- 888 889 test convert_units-5.4.11.0 {Rappture::Units::convert, T->G} { 890 list [catch {Rappture::Units::convert 5T -to G} msg] $msg 891 } {0 50000G} 892 893 test convert_units-5.4.11.1 {Rappture::Units::convert, G->T} { 894 list [catch {Rappture::Units::convert 5G -to T} msg] $msg 895 } {0 0.0005T} 896 897 test convert_units-5.4.11.2 {Rappture::Units::convert, G->mT} { 898 list [catch {Rappture::Units::convert 50G -to mT} msg] $msg 899 } {0 5mT} 900 901 test convert_units-5.4.11.3 {Rappture::Units::convert, Mx->Wb} { 902 list [catch {Rappture::Units::convert 5Mx -to Wb} msg] $msg 903 } {0 5e-08Wb} 904 905 test convert_units-5.4.11.4 {Rappture::Units::convert, Wb->Mx} { 906 list [catch {Rappture::Units::convert 5e-8Wb -to Mx} msg] $msg 907 } {0 5Mx} 908 909 test convert_units-5.4.11.5 {Rappture::Units::convert, wB->mX} { 910 list [catch {Rappture::Units::convert 5e-8wB -to mX} msg] $msg 911 } {0 5Mx} 912 913 #-------------------------------------------------------------------- 886 914 # Rappture::Units::Search::for <units> 887 915 #--------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.