Lines Matching defs:j

15     nlohmann::json j = {{"foo", "$bus"}};
16 auto it = j.begin();
23 EXPECT_EQ(expected, j["foo"]);
28 nlohmann::json j = {{"foo", "$TEST"}};
29 auto it = j.begin();
36 EXPECT_EQ(expected, j["foo"]);
41 nlohmann::json j = {{"foo", "the $TEST"}};
42 auto it = j.begin();
49 EXPECT_EQ(expected, j["foo"]);
54 nlohmann::json j = {{"foo", "the $TEST worked"}};
55 auto it = j.begin();
62 EXPECT_EQ(expected, j["foo"]);
67 nlohmann::json j = {{"foo", "the Test $TEST"}};
68 auto it = j.begin();
75 EXPECT_EQ(expected, j["foo"]);
80 nlohmann::json j = {{"foo", "3 plus 1 equals $TEST + 1"}};
81 auto it = j.begin();
88 EXPECT_EQ(expected, j["foo"]);
93 nlohmann::json j = {{"foo", "3 minus 1 equals $TEST - 1 !"}};
94 auto it = j.begin();
101 EXPECT_EQ(expected, j["foo"]);
106 nlohmann::json j = {{"foo", "3 mod 2 equals $TEST % 2"}};
107 auto it = j.begin();
114 EXPECT_EQ(expected, j["foo"]);
119 nlohmann::json j = {{"foo", "3 * 2 equals $TEST * 2"}};
120 auto it = j.begin();
127 EXPECT_EQ(expected, j["foo"]);
132 nlohmann::json j = {{"foo", "4 / 2 equals $TEST / 2"}};
133 auto it = j.begin();
140 EXPECT_EQ(expected, j["foo"]);
145 nlohmann::json j = {{"foo", "4 * 2 % 6 equals $TEST * 2 % 6"}};
146 auto it = j.begin();
153 EXPECT_EQ(expected, j["foo"]);
158 nlohmann::json j = {{"foo", "$FOO $BAR"}};
159 auto it = j.begin();
167 EXPECT_EQ(expected, j["foo"]);
172 nlohmann::json j = {{"foo", "4 / 2 equals $TEST / 2 $BAR"}};
173 auto it = j.begin();
185 nlohmann::json j = {{"foo", "4 / 2 equals $ADDRESS / 2 $BAR"}};
186 auto it = j.begin();
194 EXPECT_EQ(expected, j["foo"]);
199 nlohmann::json j = {{"Address", "0x54"},
207 for (auto it = j.begin(); it != j.end(); it++)
215 EXPECT_EQ(expected, j);
220 nlohmann::json j = {{"foo", "twelve is $TEST"}};
221 auto it = j.begin();
228 EXPECT_EQ(expected, j["foo"]);
233 nlohmann::json j = {{"foo", "0x54"}};
234 auto it = j.begin();
240 EXPECT_EQ(expected, j["foo"]);
245 nlohmann::json j = {{"foo", "$EXISTENT_VAR and $NON_EXISTENT_VAR"}};
246 auto it = j.begin();
257 EXPECT_EQ(expected, j["foo"]);
262 nlohmann::json j = {{"foo", "the Test $TEST is $TESTED"}};
263 auto it = j.begin();
268 EXPECT_EQ(expected, j["foo"]);
273 nlohmann::json j = R"("foo")"_json;
275 EXPECT_TRUE(matchProbe(j, v));
280 nlohmann::json j = R"("foo*")"_json;
282 EXPECT_TRUE(matchProbe(j, v));
287 nlohmann::json j = R"("foobar")"_json;
289 EXPECT_FALSE(matchProbe(j, v));
294 nlohmann::json j = R"("foo[")"_json;
296 EXPECT_FALSE(matchProbe(j, v));
301 nlohmann::json j = R"("foo(?!bar)...foo")"_json;
304 EXPECT_FALSE(matchProbe(j, v1));
305 EXPECT_TRUE(matchProbe(j, v2));
310 nlohmann::json j = R"("0")"_json;
312 EXPECT_FALSE(matchProbe(j, v));
317 nlohmann::json j = R"("1")"_json;
319 EXPECT_FALSE(matchProbe(j, v));
324 nlohmann::json j = R"("11")"_json;
326 EXPECT_FALSE(matchProbe(j, v));
331 nlohmann::json j = R"("false")"_json;
333 EXPECT_FALSE(matchProbe(j, v));
338 nlohmann::json j = R"("true")"_json;
340 EXPECT_FALSE(matchProbe(j, v));
345 nlohmann::json j = R"("false")"_json;
347 EXPECT_FALSE(matchProbe(j, v));
352 nlohmann::json j = R"("255")"_json;
354 EXPECT_FALSE(matchProbe(j, v));
359 nlohmann::json j = R"("65535")"_json;
361 EXPECT_FALSE(matchProbe(j, v));
366 nlohmann::json j = R"("false")"_json;
368 EXPECT_FALSE(matchProbe(j, v));
373 nlohmann::json j = R"("true")"_json;
375 EXPECT_FALSE(matchProbe(j, v));
380 nlohmann::json j = R"("11")"_json;
382 EXPECT_FALSE(matchProbe(j, v));
387 nlohmann::json j = R"("-11")"_json;
389 EXPECT_FALSE(matchProbe(j, v));
394 nlohmann::json j = R"("1*4")"_json;
396 EXPECT_FALSE(matchProbe(j, v));
401 nlohmann::json j = R"("foo")"_json;
403 EXPECT_FALSE(matchProbe(j, v));
408 nlohmann::json j = R"("123.4")"_json;
410 EXPECT_FALSE(matchProbe(j, v));
415 nlohmann::json j = R"("-123.4")"_json;
417 EXPECT_FALSE(matchProbe(j, v));
422 nlohmann::json j = R"("-123.4")"_json;
424 EXPECT_FALSE(matchProbe(j, v));
429 nlohmann::json j = R"(false)"_json;
431 EXPECT_FALSE(matchProbe(j, v));
436 nlohmann::json j = R"(true)"_json;
438 EXPECT_TRUE(matchProbe(j, v));
443 nlohmann::json j = R"(false)"_json;
445 EXPECT_TRUE(matchProbe(j, v));
450 nlohmann::json j = R"(true)"_json;
452 EXPECT_FALSE(matchProbe(j, v));
457 nlohmann::json j = R"(true)"_json;
459 EXPECT_FALSE(matchProbe(j, v));
464 nlohmann::json j = R"(true)"_json;
466 EXPECT_FALSE(matchProbe(j, v));
471 nlohmann::json j = R"(false)"_json;
473 EXPECT_FALSE(matchProbe(j, v));
478 nlohmann::json j = R"(false)"_json;
480 EXPECT_FALSE(matchProbe(j, v));
485 nlohmann::json j = R"(true)"_json;
487 EXPECT_FALSE(matchProbe(j, v));
492 nlohmann::json j = R"(true)"_json;
494 EXPECT_FALSE(matchProbe(j, v));
499 nlohmann::json j = R"(false)"_json;
501 EXPECT_FALSE(matchProbe(j, v));
506 nlohmann::json j = R"(false)"_json;
508 EXPECT_FALSE(matchProbe(j, v));
513 nlohmann::json j = R"(false)"_json;
515 EXPECT_FALSE(matchProbe(j, v));
520 nlohmann::json j = R"(true)"_json;
522 EXPECT_FALSE(matchProbe(j, v));
527 nlohmann::json j = R"(true)"_json;
529 EXPECT_FALSE(matchProbe(j, v));
534 nlohmann::json j = R"(11)"_json;
536 EXPECT_FALSE(matchProbe(j, v));
541 nlohmann::json j = R"(1)"_json;
543 EXPECT_FALSE(matchProbe(j, v));
548 nlohmann::json j = R"(0)"_json;
550 EXPECT_FALSE(matchProbe(j, v));
555 nlohmann::json j = R"(11)"_json;
557 EXPECT_TRUE(matchProbe(j, v));
562 nlohmann::json j = R"(11)"_json;
564 EXPECT_FALSE(matchProbe(j, v));
569 nlohmann::json j = R"(65535)"_json;
571 EXPECT_FALSE(matchProbe(j, v));
576 nlohmann::json j = R"(11)"_json;
578 EXPECT_TRUE(matchProbe(j, v));
583 nlohmann::json j = R"(11)"_json;
585 EXPECT_TRUE(matchProbe(j, v));
590 nlohmann::json j = R"(11)"_json;
592 EXPECT_FALSE(matchProbe(j, v));
597 nlohmann::json j = R"(11)"_json;
599 EXPECT_FALSE(matchProbe(j, v));
604 nlohmann::json j = R"(11)"_json;
606 EXPECT_FALSE(matchProbe(j, v));
611 nlohmann::json j = R"(-11)"_json;
613 EXPECT_FALSE(matchProbe(j, v));
618 nlohmann::json j = R"(-1)"_json;
620 EXPECT_FALSE(matchProbe(j, v));
625 nlohmann::json j = R"(-11)"_json;
627 EXPECT_FALSE(matchProbe(j, v));
632 nlohmann::json j = R"(-11)"_json;
634 EXPECT_TRUE(matchProbe(j, v));
639 nlohmann::json j = R"(-124)"_json;
641 EXPECT_FALSE(matchProbe(j, v));
646 nlohmann::json j = R"(-11)"_json;
648 EXPECT_TRUE(matchProbe(j, v));
653 nlohmann::json j = R"(-11)"_json;
655 EXPECT_FALSE(matchProbe(j, v));
660 nlohmann::json j = R"(-11)"_json;
662 EXPECT_FALSE(matchProbe(j, v));
667 nlohmann::json j = R"(-11)"_json;
669 EXPECT_FALSE(matchProbe(j, v));
674 nlohmann::json j = R"(0.0)"_json;
676 EXPECT_FALSE(matchProbe(j, v));
681 nlohmann::json j = R"(0.0)"_json;
683 EXPECT_FALSE(matchProbe(j, v));
688 nlohmann::json j = R"(1.0)"_json;
690 EXPECT_FALSE(matchProbe(j, v));
695 nlohmann::json j = R"(-124.0)"_json;
697 EXPECT_TRUE(matchProbe(j, v));
702 nlohmann::json j = R"(-124.0)"_json;
704 EXPECT_FALSE(matchProbe(j, v));
709 nlohmann::json j = R"(124.7)"_json;
711 EXPECT_FALSE(matchProbe(j, v));
715 nlohmann::json j = R"(-124.2)"_json;
717 EXPECT_TRUE(matchProbe(j, v));
722 nlohmann::json j = R"(-124.3)"_json;
724 EXPECT_FALSE(matchProbe(j, v));
729 nlohmann::json j = R"(-11.0)"_json;
731 EXPECT_FALSE(matchProbe(j, v));
736 nlohmann::json j = R"(-11.2)"_json;
738 EXPECT_FALSE(matchProbe(j, v));
743 nlohmann::json j = R"([1, 2])"_json;
745 EXPECT_FALSE(matchProbe(j, v));
750 nlohmann::json j = R"([1, 2])"_json;
752 EXPECT_FALSE(matchProbe(j, v));
757 nlohmann::json j = R"([1, 2])"_json;
759 EXPECT_FALSE(matchProbe(j, v));
764 nlohmann::json j = R"([1, 2])"_json;
766 EXPECT_FALSE(matchProbe(j, v));
771 nlohmann::json j = R"([1, 2])"_json;
773 EXPECT_FALSE(matchProbe(j, v));
778 nlohmann::json j = R"([1, 2])"_json;
780 EXPECT_FALSE(matchProbe(j, v));
785 nlohmann::json j = R"([1, 2])"_json;
787 EXPECT_TRUE(matchProbe(j, v));
792 nlohmann::json j = R"([1, 2, 3])"_json;
794 EXPECT_FALSE(matchProbe(j, v));
799 nlohmann::json j = R"([1, 2])"_json;
801 EXPECT_FALSE(matchProbe(j, v));
806 nlohmann::json j = R"([])"_json;
808 EXPECT_TRUE(matchProbe(j, v));
813 nlohmann::json j = R"([])"_json;
815 EXPECT_FALSE(matchProbe(j, v));
820 nlohmann::json j = R"([1])"_json;
822 EXPECT_FALSE(matchProbe(j, v));
827 nlohmann::json j = R"({"foo": "bar"})"_json;
829 EXPECT_FALSE(matchProbe(j, v));
834 nlohmann::json j = R"({"foo": "bar"})"_json;
836 EXPECT_FALSE(matchProbe(j, v));
841 nlohmann::json j = R"({"foo": "bar"})"_json;
843 EXPECT_FALSE(matchProbe(j, v));
848 nlohmann::json j = R"({"foo": "bar"})"_json;
850 EXPECT_FALSE(matchProbe(j, v));
855 nlohmann::json j = R"({"foo": "bar"})"_json;
857 EXPECT_FALSE(matchProbe(j, v));
862 nlohmann::json j = R"({"foo": "bar"})"_json;
864 EXPECT_FALSE(matchProbe(j, v));
869 nlohmann::json j = R"({"foo": "bar"})"_json;
871 EXPECT_FALSE(matchProbe(j, v));
876 nlohmann::json j = R"(null)"_json;
878 EXPECT_FALSE(matchProbe(j, v));
883 nlohmann::json j = R"(null)"_json;
885 EXPECT_FALSE(matchProbe(j, v));
890 nlohmann::json j = R"(null)"_json;
892 EXPECT_FALSE(matchProbe(j, v));
897 nlohmann::json j = R"(null)"_json;
899 EXPECT_FALSE(matchProbe(j, v));
904 nlohmann::json j = R"(null)"_json;
906 EXPECT_FALSE(matchProbe(j, v));
911 nlohmann::json j = R"(null)"_json;
913 EXPECT_FALSE(matchProbe(j, v));
918 nlohmann::json j = R"(null)"_json;
920 EXPECT_FALSE(matchProbe(j, v));