@@ -316,7 +316,7 @@ def test_load_json_w_json_string_items(session):
316
316
317
317
# Verifies JSON strings preserve array order, regardless of dictionary key order.
318
318
assert df ["json_col" ][6 ] == '{"a":1,"b":2}'
319
- assert df ["json_col" ][7 ] == '{"dict":{"array":[{"bar":"hello" },{"foo":1 }],"int":1}}'
319
+ assert df ["json_col" ][7 ] == '{"dict":{"array":[{"foo":1 },{"bar":"hello" }],"int":1}}'
320
320
321
321
322
322
def test_load_json_to_pandas_has_correct_result (session ):
@@ -355,7 +355,7 @@ def test_load_json_in_struct(session):
355
355
'dict',
356
356
JSON_OBJECT(
357
357
'int', 1,
358
- 'array', [JSON_OBJECT('bar ', 'hello' ), JSON_OBJECT('foo ', 1 )]
358
+ 'array', [JSON_OBJECT('foo ', 1 ), JSON_OBJECT('bar ', 'hello' )]
359
359
)
360
360
), 7),
361
361
"""
@@ -373,7 +373,7 @@ def test_load_json_in_struct(session):
373
373
assert data [3 ] == '{"string":"hello world"}'
374
374
assert data [4 ] == '{"array":[8,9,10]}'
375
375
assert data [5 ] == '{"null":null}'
376
- assert data [6 ] == '{"dict":{"array":[{"bar":"hello" },{"foo":1 }],"int":1}}'
376
+ assert data [6 ] == '{"dict":{"array":[{"foo":1 },{"bar":"hello" }],"int":1}}'
377
377
378
378
379
379
def test_load_json_in_array (session ):
0 commit comments