| | @@ -1035,11 +1035,11 @@ |
| 1035 | 1035 | |
| 1036 | 1036 | ############################################################################### |
| 1037 | 1037 | |
| 1038 | 1038 | fossil test-th-eval {string is other 123} |
| 1039 | 1039 | test th1-string-is-4 {$RESULT eq \ |
| 1040 | | -"TH_ERROR: Expected alnum or list, got: other"} |
| 1040 | +"TH_ERROR: Expected alnum, double, integer, or list, got: other"} |
| 1041 | 1041 | |
| 1042 | 1042 | ############################################################################### |
| 1043 | 1043 | |
| 1044 | 1044 | fossil test-th-eval {string is alnum 123} |
| 1045 | 1045 | test th1-string-is-5 {$RESULT eq "1"} |
| | @@ -1106,5 +1106,70 @@ |
| 1106 | 1106 | |
| 1107 | 1107 | ############################################################################### |
| 1108 | 1108 | |
| 1109 | 1109 | fossil test-th-eval {string is list "1 2 3 \{\{\}"} |
| 1110 | 1110 | test th1-string-is-18 {$RESULT eq "0"} |
| 1111 | + |
| 1112 | +############################################################################### |
| 1113 | + |
| 1114 | +fossil test-th-eval {string is double 123} |
| 1115 | +test th1-string-is-19 {$RESULT eq "1"} |
| 1116 | + |
| 1117 | +############################################################################### |
| 1118 | + |
| 1119 | +fossil test-th-eval {string is double 123.456} |
| 1120 | +test th1-string-is-20 {$RESULT eq "1"} |
| 1121 | + |
| 1122 | +############################################################################### |
| 1123 | + |
| 1124 | +fossil test-th-eval {string is double 123abc} |
| 1125 | +test th1-string-is-21 {$RESULT eq "0"} |
| 1126 | + |
| 1127 | +############################################################################### |
| 1128 | + |
| 1129 | +fossil test-th-eval {string is double 123_456} |
| 1130 | +test th1-string-is-22 {$RESULT eq "0"} |
| 1131 | + |
| 1132 | +############################################################################### |
| 1133 | + |
| 1134 | +fossil test-th-eval {string is integer 123} |
| 1135 | +test th1-string-is-23 {$RESULT eq "1"} |
| 1136 | + |
| 1137 | +############################################################################### |
| 1138 | + |
| 1139 | +fossil test-th-eval {string is integer 123.456} |
| 1140 | +test th1-string-is-24 {$RESULT eq "0"} |
| 1141 | + |
| 1142 | +############################################################################### |
| 1143 | + |
| 1144 | +fossil test-th-eval {string is integer 123abc} |
| 1145 | +test th1-string-is-25 {$RESULT eq "0"} |
| 1146 | + |
| 1147 | +############################################################################### |
| 1148 | + |
| 1149 | +fossil test-th-eval {string is integer 0b11001001} |
| 1150 | +test th1-string-is-26 {$RESULT eq "1"} |
| 1151 | + |
| 1152 | +############################################################################### |
| 1153 | + |
| 1154 | +fossil test-th-eval {string is integer 0b11001002} |
| 1155 | +test th1-string-is-27 {$RESULT eq "0"} |
| 1156 | + |
| 1157 | +############################################################################### |
| 1158 | + |
| 1159 | +fossil test-th-eval {string is integer 0o777} |
| 1160 | +test th1-string-is-28 {$RESULT eq "1"} |
| 1161 | + |
| 1162 | +############################################################################### |
| 1163 | + |
| 1164 | +fossil test-th-eval {string is integer 0o778} |
| 1165 | +test th1-string-is-29 {$RESULT eq "0"} |
| 1166 | + |
| 1167 | +############################################################################### |
| 1168 | + |
| 1169 | +fossil test-th-eval {string is integer 0xC0DEF00D} |
| 1170 | +test th1-string-is-30 {$RESULT eq "1"} |
| 1171 | + |
| 1172 | +############################################################################### |
| 1173 | + |
| 1174 | +fossil test-th-eval {string is integer 0xC0DEF00Z} |
| 1175 | +test th1-string-is-31 {$RESULT eq "0"} |
| 1111 | 1176 | |