@@ -1094,13 +1094,13 @@ static void simple_dict(void)
1094
1094
QString * str ;
1095
1095
1096
1096
obj = qobject_from_json (test_cases [i ].encoded , & error_abort );
1097
- g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ) == 1 );
1097
+ g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ));
1098
1098
1099
1099
str = qobject_to_json (obj );
1100
1100
qobject_decref (obj );
1101
1101
1102
1102
obj = qobject_from_json (qstring_get_str (str ), & error_abort );
1103
- g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ) == 1 );
1103
+ g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ));
1104
1104
qobject_decref (obj );
1105
1105
QDECREF (str );
1106
1106
}
@@ -1203,13 +1203,13 @@ static void simple_list(void)
1203
1203
QString * str ;
1204
1204
1205
1205
obj = qobject_from_json (test_cases [i ].encoded , & error_abort );
1206
- g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ) == 1 );
1206
+ g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ));
1207
1207
1208
1208
str = qobject_to_json (obj );
1209
1209
qobject_decref (obj );
1210
1210
1211
1211
obj = qobject_from_json (qstring_get_str (str ), & error_abort );
1212
- g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ) == 1 );
1212
+ g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ));
1213
1213
qobject_decref (obj );
1214
1214
QDECREF (str );
1215
1215
}
@@ -1265,13 +1265,13 @@ static void simple_whitespace(void)
1265
1265
QString * str ;
1266
1266
1267
1267
obj = qobject_from_json (test_cases [i ].encoded , & error_abort );
1268
- g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ) == 1 );
1268
+ g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ));
1269
1269
1270
1270
str = qobject_to_json (obj );
1271
1271
qobject_decref (obj );
1272
1272
1273
1273
obj = qobject_from_json (qstring_get_str (str ), & error_abort );
1274
- g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ) == 1 );
1274
+ g_assert (qlit_equal_qobject (& test_cases [i ].decoded , obj ));
1275
1275
1276
1276
qobject_decref (obj );
1277
1277
QDECREF (str );
@@ -1295,7 +1295,7 @@ static void simple_varargs(void)
1295
1295
g_assert (embedded_obj != NULL );
1296
1296
1297
1297
obj = qobject_from_jsonf ("[%d, 2, %p]" , 1 , embedded_obj );
1298
- g_assert (qlit_equal_qobject (& decoded , obj ) == 1 );
1298
+ g_assert (qlit_equal_qobject (& decoded , obj ));
1299
1299
1300
1300
qobject_decref (obj );
1301
1301
}
0 commit comments