Changeset 122 for trunk/test
- Timestamp:
- Nov 3, 2005, 10:00:17 PM (19 years ago)
- Location:
- trunk/test/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/src/RpUnitsF_test.f
r116 r122 14 14 IMPLICIT NONE 15 15 16 integer rp_units_convert_str , rp_units_add_presets16 integer rp_units_convert_str 17 17 integer rp_units_convert_dbl 18 18 … … 21 21 integer retVal 22 22 23 retVal = rp_units_add_presets("all")24 25 23 retVal = rp_units_convert_str("72F","C",retStr) 26 24 print *,"72F = ",retStr 25 print *,"correct retVal = 22.222C",retVal 27 26 print *,"retVal = ",retVal 28 27 29 28 retVal = rp_units_convert_dbl("72F","C",dblVal) 30 29 print *,"72F = ",dblVal, " (no units)" 30 print *,"correct retVal = 22.222",retVal 31 31 print *,"retVal = ",retVal 32 32 -
trunk/test/src/RpUnits_test.cc
r116 r122 26 26 double value = 0.0; 27 27 std::string strValue; 28 // int failTest = 0;29 28 int result = 0; 30 // std::list<double,RpUnits *>31 29 32 30 // … … 41 39 // 42 40 printf ("=============== TEST 1 ===============\n"); 43 /*44 std::string srch_str = std::string("cm");45 46 RpUnits* meters2 = RpUnits::find("cm");47 if (meters2) {48 std::cout << "meters2 exists" << std::endl;49 std::cout << "meters2 = :" << meters2->getUnitsName() <<":"<< std::endl;50 }51 52 std::cout << "complete"<< std::endl;53 54 */55 56 /*57 const RpUnits* mobility = RpUnits::defineCmplx("cm2/Vs", NULL);58 std::cout << "mobility = :" << mobility->getUnitsName() <<":"<< std::endl;59 60 const RpUnits* mobility2 = RpUnits::find("cm2V-1s-1");61 if (mobility2) {62 std::cout << "mobility2 exists" << std::endl;63 std::cout << "mobility2 = :" << mobility2->getUnits() <<":"<< std::endl;64 std::cout << "mobility2 = :" << mobility2->getUnitsName() <<":"<< std::endl;65 }66 else {67 std::cout << "mobility2 dn exists" << std::endl;68 }69 */70 41 71 42 const RpUnits* meters = RpUnits::find("m");
Note: See TracChangeset
for help on using the changeset viewer.