• Home
  • Raw
  • Download

Lines Matching full:tests

10 // TODO(dsinclair): Comment out tests are broken and need to be fixed.
38 } tests[] = {{"123 + 456", 579}, in TEST_F() local
63 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
64 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
68 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
69 << "Program: " << tests[i].program; in TEST_F()
79 } tests[] = { in TEST_F() local
84 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
85 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
89 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
90 << "Program: " << tests[i].program << " Result: '" in TEST_F()
101 } tests[] = {{"0 and 1 or 2 > 1", true}, in TEST_F() local
125 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
126 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
129 EXPECT_TRUE(value->IsInteger()) << "Program: " << tests[i].program; in TEST_F()
130 EXPECT_EQ(tests[i].result, value->ToBoolean()) in TEST_F()
131 << "Program: " << tests[i].program; in TEST_F()
141 } tests[] = {{"Abs(1.03)", 1.03f}, {"Abs(-1.03)", 1.03f}, {"Abs(0)", 0.0f}}; in TEST_F() local
143 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
144 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
148 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
149 << "Program: " << tests[i].program; in TEST_F()
159 } tests[] = {{"Avg(0, 32, 16)", 16.0f}, {"Avg(2.5, 17, null)", 9.75f}}; in TEST_F() local
161 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
162 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
166 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
167 << "Program: " << tests[i].program; in TEST_F()
177 } tests[] = {{"Ceil(2.5875)", 3}, {"Ceil(-5.9)", -5}, {"Ceil(\"abc\")", 0}}; in TEST_F() local
179 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
180 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
184 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
185 << "Program: " << tests[i].program; in TEST_F()
195 } tests[] = {{"Count(\"Tony\", \"Blue\", 41)", 3}}; in TEST_F() local
197 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
198 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
202 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
203 << "Program: " << tests[i].program; in TEST_F()
213 } tests[] = {{"Floor(21.3409873)", 21}, in TEST_F() local
217 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
218 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
222 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
223 << "Program: " << tests[i].program; in TEST_F()
233 } tests[] = {{"Max(234, 15, 107)", 234}, in TEST_F() local
237 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
238 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
242 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
243 << "Program: " << tests[i].program; in TEST_F()
253 } tests[] = {{"Min(234, 15, 107)", 15}, in TEST_F() local
259 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
260 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
264 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
265 << "Program: " << tests[i].program; in TEST_F()
275 } tests[] = {{"Mod(64, -3)", 1}, {"Mod(-13, 3)", -1}, {"Mod(\"abc\", 2)", 0}}; in TEST_F() local
277 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
278 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
282 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
283 << "Program: " << tests[i].program; in TEST_F()
293 } tests[] = {{"Round(12.389764537, 4)", 12.3898f}, in TEST_F() local
298 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
299 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
302 EXPECT_TRUE(value->IsNumber()) << "Program: " << tests[i].program; in TEST_F()
303 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
304 << "Program: " << tests[i].program; in TEST_F()
314 } tests[] = {{"Sum(2, 4, 6, 8)", 20}, in TEST_F() local
318 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
319 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
323 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
324 << "Program: " << tests[i].program; in TEST_F()
348 } tests[] = { in TEST_F() local
357 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
358 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
362 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
363 << "Program: " << tests[i].program; in TEST_F()
373 } tests[] = { in TEST_F() local
380 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
381 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
385 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
386 << "Program: " << tests[i].program << " Result: '" in TEST_F()
397 } tests[] = {{"IsoDate2Num(\"1900\")", 1}, in TEST_F() local
403 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
404 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
408 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
409 << "Program: " << tests[i].program; in TEST_F()
419 } tests[] = {{"IsoTime2Num(\"00:00:00Z\")", 1}}; in TEST_F() local
421 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
422 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
426 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
427 << "Program: " << tests[i].program; in TEST_F()
437 } tests[] = {// {"LocalDateFmt(1, \"de_DE\")", "tt.MM.uu"}, in TEST_F() local
442 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
443 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
447 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
448 << "Program: " << tests[i].program << " Result: '" in TEST_F()
459 } tests[] = {{"LocalTimeFmt(1, \"de_DE\")", "HH:mm"}, in TEST_F() local
464 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
465 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
469 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
470 << "Program: " << tests[i].program << " Result: '" in TEST_F()
481 } tests[] = { in TEST_F() local
489 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
490 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
493 EXPECT_TRUE(value->IsString()) << "Program: " << tests[i].program; in TEST_F()
494 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
495 << "Program: " << tests[i].program << " Result: '" in TEST_F()
506 } tests[] = {// Broken on Windows only. in TEST_F() local
513 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
514 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
518 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
519 << "Program: " << tests[i].program << " Result: '" in TEST_F()
531 } tests[] = {{"Num2Time(1, \"HH:MM:SS\")", "00:00:00"}}; in TEST_F() local
533 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
534 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
538 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
539 << "Program: " << tests[i].program << " Result: '" in TEST_F()
564 } tests[] = { in TEST_F() local
568 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
569 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
573 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
574 << "Program: " << tests[i].program; in TEST_F()
584 } tests[] = { in TEST_F() local
591 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
592 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
596 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
597 << "Program: " << tests[i].program << " Result: '" in TEST_F()
608 } tests[] = {{"Apr(35000, 269.50, 360)", 0.08515404566f}, in TEST_F() local
611 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
612 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
616 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
617 << "Program: " << tests[i].program; in TEST_F()
627 } tests[] = { in TEST_F() local
633 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
634 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
638 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
639 << "Program: " << tests[i].program; in TEST_F()
649 } tests[] = {{"FV(400, 0.10 / 12, 30 * 12)", 904195.16991842445f}, in TEST_F() local
652 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
653 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
657 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
658 << "Program: " << tests[i].program; in TEST_F()
668 } tests[] = {{"IPmt(30000, 0.085, 295.50, 7, 3)", 624.8839283142f}, in TEST_F() local
672 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
673 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
677 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
678 << "Program: " << tests[i].program; in TEST_F()
688 } tests[] = {{"NPV(0.065, 5000)", 4694.83568075117f}, in TEST_F() local
692 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
693 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
696 EXPECT_TRUE(value->IsNumber()) << "Program: " << tests[i].program; in TEST_F()
697 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
698 << "Program: " << tests[i].program; in TEST_F()
708 } tests[] = {// {"Pmt(150000, 0.0475 / 12, 25 * 12)", 855.17604207164f}, in TEST_F() local
711 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
712 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
716 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
717 << "Program: " << tests[i].program; in TEST_F()
727 } tests[] = { in TEST_F() local
733 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
734 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
738 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
739 << "Program: " << tests[i].program; in TEST_F()
749 } tests[] = { in TEST_F() local
754 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
755 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
759 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
760 << "Program: " << tests[i].program; in TEST_F()
770 } tests[] = {{"Rate(12000, 8000, 5)", 0.0844717712f}, in TEST_F() local
773 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
774 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
778 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
779 << "Program: " << tests[i].program; in TEST_F()
789 } tests[] = {// {"Term(475, .05, 1500)", 3.00477517728f}, in TEST_F() local
792 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
793 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
797 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
798 << "Program: " << tests[i].program; in TEST_F()
808 } tests[] = { in TEST_F() local
814 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
815 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
819 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
820 << "Program: " << tests[i].program << " Result: '" in TEST_F()
840 } tests[] = {{"HasValue(2)", true}, {"HasValue(\" \")", false}}; in TEST_F() local
842 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
843 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
846 EXPECT_TRUE(value->IsInteger()) << "Program: " << tests[i].program; in TEST_F()
847 EXPECT_EQ(tests[i].result, value->ToBoolean()) in TEST_F()
848 << "Program: " << tests[i].program; in TEST_F()
858 } tests[] = { in TEST_F() local
867 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
868 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
871 EXPECT_TRUE(value->IsInteger()) << "Program: " << tests[i].program; in TEST_F()
872 EXPECT_EQ(tests[i].result, value->ToBoolean()) in TEST_F()
873 << "Program: " << tests[i].program; in TEST_F()
883 } tests[] = {{"Within(\"C\", \"A\", \"D\")", true}, in TEST_F() local
887 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
888 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
891 EXPECT_TRUE(value->IsInteger()) << "Program: " << tests[i].program; in TEST_F()
892 EXPECT_EQ(tests[i].result, value->ToBoolean()) in TEST_F()
893 << "Program: " << tests[i].program; in TEST_F()
903 } tests[] = {{"eval(\"10*3+5*4\")", 50}}; in TEST_F() local
905 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
906 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
910 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
911 << "Program: " << tests[i].program; in TEST_F()
921 } tests[] = {{"Null()", "null"}, in TEST_F() local
924 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
925 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
929 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
930 << "Program: " << tests[i].program << " Result: '" in TEST_F()
947 } tests[] = {{"Ref(\"10*3+5*4\")", "10*3+5*4"}, {"Ref(\"hello\")", "hello"}}; in TEST_F() local
949 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
950 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
954 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
955 << "Program: " << tests[i].program << " Result: '" in TEST_F()
966 } tests[] = {{"UnitType(\"36 in\")", "in"}, in TEST_F() local
973 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
974 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
978 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
979 << "Program: " << tests[i].program << " Result: '" in TEST_F()
990 } tests[] = { in TEST_F() local
997 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
998 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1002 EXPECT_FLOAT_EQ(tests[i].result, value->ToFloat()) in TEST_F()
1003 << "Program: " << tests[i].program; in TEST_F()
1013 } tests[] = {{"At(\"ABCDEFGH\", \"AB\")", 1}, in TEST_F() local
1017 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1018 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1022 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
1023 << "Program: " << tests[i].program; in TEST_F()
1033 } tests[] = {{"Concat(\"ABC\", \"DEF\")", "ABCDEF"}, in TEST_F() local
1039 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1040 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1044 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1045 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1056 } tests[] = { in TEST_F() local
1064 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1065 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1069 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1070 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1081 } tests[] = { in TEST_F() local
1086 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1087 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1091 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1092 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1103 } tests[] = {{"Format(\"MMM D, YYYY\", \"20020901\")", "Sep 1, 2002"}, in TEST_F() local
1106 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1107 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1111 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1112 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1123 } tests[] = {{"Left(\"ABCDEFGH\", 3)", "ABC"}, in TEST_F() local
1126 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1127 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1131 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1132 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1143 } tests[] = { in TEST_F() local
1146 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1147 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1151 EXPECT_EQ(tests[i].result, value->ToInteger()) in TEST_F()
1152 << "Program: " << tests[i].program; in TEST_F()
1162 } tests[] = {{"Lower(\"ABC\")", "abc"}, in TEST_F() local
1166 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1167 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1171 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1172 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1183 } tests[] = {{"Ltrim(\" ABCD\")", "ABCD"}, in TEST_F() local
1186 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1187 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1191 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1192 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1203 } tests[] = {{"Parse(\"MMM D, YYYY\", \"Sep 1, 2002\")", "2002-09-01"}}; in TEST_F() local
1205 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1206 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1210 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1211 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1227 } tests[] = {{"Replace(\"Tony Blue\", \"Tony\", \"Chris\")", "Chris Blue"}, in TEST_F() local
1231 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1232 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1236 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1237 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1248 } tests[] = {{"Right(\"ABCDEFGH\", 3)", "FGH"}, in TEST_F() local
1251 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1252 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1256 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1257 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1268 } tests[] = {{"Rtrim(\"ABCD \")", "ABCD"}, in TEST_F() local
1271 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1272 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1276 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1277 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1288 } tests[] = {{"Space(5)", " "}, in TEST_F() local
1291 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1292 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1296 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1297 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1308 } tests[] = {{"Str(2.456)", " 2"}, in TEST_F() local
1313 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1314 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1318 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1319 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1330 } tests[] = {{"Stuff(\"TonyBlue\", 5, 0, \" \")", "Tony Blue"}, in TEST_F() local
1335 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1336 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1340 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1341 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1352 } tests[] = {{"Substr(\"ABCDEFG\", 3, 4)", "CDEF"}, in TEST_F() local
1357 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1358 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1362 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1363 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1383 } tests[] = {{"Upper(\"abc\")", "ABC"}, in TEST_F() local
1387 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1388 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1392 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1393 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1404 } tests[] = { in TEST_F() local
1413 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1414 EXPECT_TRUE(Execute(tests[i].program)); in TEST_F()
1418 EXPECT_STREQ(tests[i].result, value->ToString().c_str()) in TEST_F()
1419 << "Program: " << tests[i].program << " Result: '" in TEST_F()
1439 const char* const tests[] = { in TEST_F() local
1443 for (size_t i = 0; i < FX_ArraySize(tests); ++i) { in TEST_F()
1444 EXPECT_FALSE(ExecuteSilenceFailure(tests[i])); in TEST_F()