@@ -141,9 +141,17 @@ JSONTEST_FIXTURE(ValueTest, checkNormalizeFloatingPointStr) {
141
141
JSONTEST_ASSERT_STRING_EQUAL (" 1234.0" , normalizeFloatingPointStr (" 1234.0" ));
142
142
JSONTEST_ASSERT_STRING_EQUAL (" 1234.0e0" ,
143
143
normalizeFloatingPointStr (" 1234.0e0" ));
144
+ JSONTEST_ASSERT_STRING_EQUAL (" 1234.0e-1" ,
145
+ normalizeFloatingPointStr (" 1234.0e-1" ));
144
146
JSONTEST_ASSERT_STRING_EQUAL (" 1234.0e+0" ,
145
147
normalizeFloatingPointStr (" 1234.0e+0" ));
148
+ JSONTEST_ASSERT_STRING_EQUAL (" 1234.0e+1" ,
149
+ normalizeFloatingPointStr (" 1234.0e+001" ));
146
150
JSONTEST_ASSERT_STRING_EQUAL (" 1234e-1" , normalizeFloatingPointStr (" 1234e-1" ));
151
+ JSONTEST_ASSERT_STRING_EQUAL (" 1234e+0" ,
152
+ normalizeFloatingPointStr (" 1234e+000" ));
153
+ JSONTEST_ASSERT_STRING_EQUAL (" 1234e+1" ,
154
+ normalizeFloatingPointStr (" 1234e+001" ));
147
155
JSONTEST_ASSERT_STRING_EQUAL (" 1234e10" , normalizeFloatingPointStr (" 1234e10" ));
148
156
JSONTEST_ASSERT_STRING_EQUAL (" 1234e10" ,
149
157
normalizeFloatingPointStr (" 1234e010" ));
@@ -155,8 +163,6 @@ JSONTEST_FIXTURE(ValueTest, checkNormalizeFloatingPointStr) {
155
163
normalizeFloatingPointStr (" 1234e+100" ));
156
164
JSONTEST_ASSERT_STRING_EQUAL (" 1234e-100" ,
157
165
normalizeFloatingPointStr (" 1234e-100" ));
158
- JSONTEST_ASSERT_STRING_EQUAL (" 1234e+1" ,
159
- normalizeFloatingPointStr (" 1234e+001" ));
160
166
}
161
167
162
168
JSONTEST_FIXTURE (ValueTest, memberCount) {
@@ -172,6 +178,9 @@ JSONTEST_FIXTURE(ValueTest, memberCount) {
172
178
JSONTEST_ASSERT_PRED (checkMemberCount (emptyString_, 0 ));
173
179
JSONTEST_ASSERT_PRED (checkMemberCount (string_, 0 ));
174
180
JSONTEST_ASSERT_PRED (checkMemberCount (true_, 0 ));
181
+ JSONTEST_ASSERT_PRED (checkMemberCount (false_, 0 ));
182
+ JSONTEST_ASSERT_PRED (checkMemberCount (string1_, 0 ));
183
+ JSONTEST_ASSERT_PRED (checkMemberCount (float_, 0 ));
175
184
}
176
185
177
186
JSONTEST_FIXTURE (ValueTest, objects) {
0 commit comments