Fix for 32 bits system
This commit is contained in:
1 parent
058d3202ff
commit
797ac1f0da
1 file changed
+2
-1
+2
-1
@@ -121,9 +121,10 @@ static void test_out_fill(void)
|
||||
f = fopen ("a-mjson.dat", "rt");
|
||||
if (!f) abort();
|
||||
static const char expected[] = "{ \"activated\":false,\"data\":{ \"vala\":1742,\"valb\":-2.300000,\"valc\":true,\"vald\":\"This is a test\",\"vale\":[1,2,3],\"valf\":{\"is_bool\":true},\"valg\":[1,2,3,4,5,6],\"valh\":{\"steeve\":-4,\"jane\":3}}}";
|
||||
static const char expected2[] = "{ \"activated\":false,\"data\":{ \"vala\":1742,\"valb\":-2.300000,\"valc\":true,\"vald\":\"This is a test\",\"vale\":[1,2,3],\"valf\":{\"is_bool\":true},\"valg\":[1,2,3,4,5,6],\"valh\":{\"jane\":3,\"steeve\":-4}}}";
|
||||
char get[sizeof expected];
|
||||
fgets (get, sizeof expected , f);
|
||||
assert (strcmp(get, expected) == 0);
|
||||
assert (strcmp(get, expected) == 0 || strcmp(get, expected2) == 0);
|
||||
fclose(f);
|
||||
|
||||
f = fopen ("a-mjson.dat", "rt");
|
||||
|
||||
Reference in new issue
Block a user