MCPcopy Create free account
hub / github.com/SOUI2/soui / JSONTEST_FIXTURE

Function JSONTEST_FIXTURE

third-part/jsoncpp/src/test_lib_json/main.cpp:135–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135JSONTEST_FIXTURE(ValueTest, checkNormalizeFloatingPointStr) {
136 JSONTEST_ASSERT_STRING_EQUAL("0.0", normalizeFloatingPointStr("0.0"));
137 JSONTEST_ASSERT_STRING_EQUAL("0e0", normalizeFloatingPointStr("0e0"));
138 JSONTEST_ASSERT_STRING_EQUAL("1234.0", normalizeFloatingPointStr("1234.0"));
139 JSONTEST_ASSERT_STRING_EQUAL("1234.0e0",
140 normalizeFloatingPointStr("1234.0e0"));
141 JSONTEST_ASSERT_STRING_EQUAL("1234.0e+0",
142 normalizeFloatingPointStr("1234.0e+0"));
143 JSONTEST_ASSERT_STRING_EQUAL("1234e-1", normalizeFloatingPointStr("1234e-1"));
144 JSONTEST_ASSERT_STRING_EQUAL("1234e10", normalizeFloatingPointStr("1234e10"));
145 JSONTEST_ASSERT_STRING_EQUAL("1234e10",
146 normalizeFloatingPointStr("1234e010"));
147 JSONTEST_ASSERT_STRING_EQUAL("1234e+10",
148 normalizeFloatingPointStr("1234e+010"));
149 JSONTEST_ASSERT_STRING_EQUAL("1234e-10",
150 normalizeFloatingPointStr("1234e-010"));
151 JSONTEST_ASSERT_STRING_EQUAL("1234e+100",
152 normalizeFloatingPointStr("1234e+100"));
153 JSONTEST_ASSERT_STRING_EQUAL("1234e-100",
154 normalizeFloatingPointStr("1234e-100"));
155 JSONTEST_ASSERT_STRING_EQUAL("1234e+1",
156 normalizeFloatingPointStr("1234e+001"));
157}
158
159JSONTEST_FIXTURE(ValueTest, memberCount) {
160 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
readerFunction · 0.85
moveFunction · 0.85
isConvertibleToMethod · 0.80
removeMemberMethod · 0.80
removeIndexMethod · 0.80
asIntMethod · 0.80
asLargestIntMethod · 0.80

Tested by

no test coverage detected