MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / JSONTEST_FIXTURE

Function JSONTEST_FIXTURE

edrav2/eprj/jsoncpp/src/test_lib_json/main.cpp:136–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136JSONTEST_FIXTURE(ValueTest, checkNormalizeFloatingPointStr) {
137 JSONTEST_ASSERT_STRING_EQUAL("0.0", normalizeFloatingPointStr("0.0"));
138 JSONTEST_ASSERT_STRING_EQUAL("0e0", normalizeFloatingPointStr("0e0"));
139 JSONTEST_ASSERT_STRING_EQUAL("1234.0", normalizeFloatingPointStr("1234.0"));
140 JSONTEST_ASSERT_STRING_EQUAL("1234.0e0",
141 normalizeFloatingPointStr("1234.0e0"));
142 JSONTEST_ASSERT_STRING_EQUAL("1234.0e+0",
143 normalizeFloatingPointStr("1234.0e+0"));
144 JSONTEST_ASSERT_STRING_EQUAL("1234e-1", normalizeFloatingPointStr("1234e-1"));
145 JSONTEST_ASSERT_STRING_EQUAL("1234e10", normalizeFloatingPointStr("1234e10"));
146 JSONTEST_ASSERT_STRING_EQUAL("1234e10",
147 normalizeFloatingPointStr("1234e010"));
148 JSONTEST_ASSERT_STRING_EQUAL("1234e+10",
149 normalizeFloatingPointStr("1234e+010"));
150 JSONTEST_ASSERT_STRING_EQUAL("1234e-10",
151 normalizeFloatingPointStr("1234e-010"));
152 JSONTEST_ASSERT_STRING_EQUAL("1234e+100",
153 normalizeFloatingPointStr("1234e+100"));
154 JSONTEST_ASSERT_STRING_EQUAL("1234e-100",
155 normalizeFloatingPointStr("1234e-100"));
156 JSONTEST_ASSERT_STRING_EQUAL("1234e+1",
157 normalizeFloatingPointStr("1234e+001"));
158}
159
160JSONTEST_FIXTURE(ValueTest, memberCount) {
161 JSONTEST_ASSERT_PRED(checkMemberCount(emptyArray_, 0));

Callers 1

main.cppFile · 0.85

Calls 15

IsCheckClass · 0.85
ToJsonStringFunction · 0.85
uint64ToDoubleFunction · 0.85
writeStringFunction · 0.85
infinityClass · 0.85
strlenFunction · 0.85
isConvertibleToMethod · 0.80
removeMemberMethod · 0.80
removeIndexMethod · 0.80
asLargestIntMethod · 0.80
asUIntMethod · 0.80

Tested by

no test coverage detected