| 59 | } |
| 60 | |
| 61 | static void cjson_compare_should_compare_numbers(void) |
| 62 | { |
| 63 | TEST_ASSERT_TRUE(compare_from_string("1", "1", true)); |
| 64 | TEST_ASSERT_TRUE(compare_from_string("1", "1", false)); |
| 65 | TEST_ASSERT_TRUE(compare_from_string("0.0001", "0.0001", true)); |
| 66 | TEST_ASSERT_TRUE(compare_from_string("0.0001", "0.0001", false)); |
| 67 | TEST_ASSERT_TRUE(compare_from_string("1E100", "10E99", false)); |
| 68 | |
| 69 | TEST_ASSERT_FALSE(compare_from_string("0.5E-100", "0.5E-101", false)); |
| 70 | |
| 71 | TEST_ASSERT_FALSE(compare_from_string("1", "2", true)); |
| 72 | TEST_ASSERT_FALSE(compare_from_string("1", "2", false)); |
| 73 | } |
| 74 | |
| 75 | static void cjson_compare_should_compare_booleans(void) |
| 76 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…