Changeset 496 for trunk/test/src
- Timestamp:
- Jul 23, 2006, 12:09:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/src/RpLibraryF_test.f
r125 r496 66 66 END SUBROUTINE test_get_dbl 67 67 68 SUBROUTINE test_get_int(lib,path) 69 integer lib 70 integer rslt, rp_lib_get_integer 71 character*100 path 72 73 print *,"TESTING GET INTEGER: path = ",path 74 75 rslt = rp_lib_get_integer(lib, path) 76 77 print *,"rslt = ",rslt 78 END SUBROUTINE test_get_int 79 80 SUBROUTINE test_get_bool(lib,path) 81 integer lib 82 integer rslt, rp_lib_get_boolean 83 character*100 path 84 85 print *,"TESTING GET BOOLEAN: path = ",path 86 87 rslt = rp_lib_get_boolean(lib, path) 88 89 print *,"rslt = ",rslt 90 END SUBROUTINE test_get_bool 91 68 92 program rplib_f_tests 69 93 IMPLICIT NONE … … 94 118 call test_get_dbl(driver, path) 95 119 120 ! TESTING GET INT 121 path = "input.integer(try).current" 122 call rp_lib_put_str(driver, path, "12",0) 123 call test_get_int(driver, path) 124 call rp_lib_put_str(driver, path, "15.043",0) 125 call test_get_int(driver, path) 126 127 ! TESTING GET BOOLEAN 128 path = "input.boolean(b).current" 129 call rp_lib_put_str(driver, path, "true",0) 130 call test_get_bool(driver, path) 131 call rp_lib_put_str(driver, path, "false",0) 132 call test_get_bool(driver, path) 133 call rp_lib_put_str(driver, path, "1",0) 134 call test_get_bool(driver, path) 135 call rp_lib_put_str(driver, path, "0",0) 136 call test_get_bool(driver, path) 137 call rp_lib_put_str(driver, path, "on",0) 138 call test_get_bool(driver, path) 139 call rp_lib_put_str(driver, path, "off",0) 140 call test_get_bool(driver, path) 141 call rp_lib_put_str(driver, path, "yes",0) 142 call test_get_bool(driver, path) 143 call rp_lib_put_str(driver, path, "no",0) 144 call test_get_bool(driver, path) 145 call rp_lib_put_str(driver, path, "t",0) 146 call test_get_bool(driver, path) 147 call rp_lib_put_str(driver, path, "f",0) 148 call test_get_bool(driver, path) 149 call rp_lib_put_str(driver, path, "ye",0) 150 call test_get_bool(driver, path) 151 call rp_lib_put_str(driver, path, "n",0) 152 call test_get_bool(driver, path) 153 call rp_lib_put_str(driver, path, "tr",0) 154 call test_get_bool(driver, path) 155 call rp_lib_put_str(driver, path, "of",0) 156 call test_get_bool(driver, path) 96 157 97 158 call rp_result(driver)
Note: See TracChangeset
for help on using the changeset viewer.