diff --git a/pkgs/messages_serializer/test/messages_serializer_test.dart b/pkgs/messages_serializer/test/messages_serializer_test.dart index ea049791..05c34943 100644 --- a/pkgs/messages_serializer/test/messages_serializer_test.dart +++ b/pkgs/messages_serializer/test/messages_serializer_test.dart @@ -67,10 +67,7 @@ void main() { final serialized = JsonSerializer().serialize('hash', 'locale', messages); final deserialize = JsonDeserializer(serialized.data).deserialize(intlPluralSelector); - expect( - deserialize.messages, - orderedEquals(messages), - ); + compareMessages(deserialize.messages, messages); }); test('Serialize partially', () { @@ -84,10 +81,7 @@ void main() { JsonSerializer().serialize('hash', 'locale', messages, [1, 3]); final deserialize = JsonDeserializer(serialized.data).deserialize(intlPluralSelector); - expect( - deserialize.messages, - orderedEquals([messages[1], messages[3]]), - ); + compareMessages(deserialize.messages, [messages[1], messages[3]]); }); test('First serialize, then deserialize again', () { diff --git a/pkgs/messages_shrinker/lib/messages_shrinker.dart b/pkgs/messages_shrinker/lib/messages_shrinker.dart index dea8b38e..91b08212 100644 --- a/pkgs/messages_shrinker/lib/messages_shrinker.dart +++ b/pkgs/messages_shrinker/lib/messages_shrinker.dart @@ -38,7 +38,7 @@ class MessageShrinker { 'just immediately reserialized, this selector will not be called.'); }, ); - final data = JsonSerializer(json.preamble.hasIds) + final data = JsonSerializer() .serialize( json.preamble.hash, json.preamble.locale, diff --git a/pkgs/messages_shrinker/test/testarb.json b/pkgs/messages_shrinker/test/testarb.json index 6676cce8..94491bb2 100644 --- a/pkgs/messages_shrinker/test/testarb.json +++ b/pkgs/messages_shrinker/test/testarb.json @@ -1 +1 @@ -[0,"","",0,null,["Welcome von <",[8,0],[13,1]],[6,"test ",[3,0,["test new messages",[5,0]],[2,"No new messages",4,"One new message",5,"Two new Messages"]]],[6,"test ",[4,0,["test new messages of type ",[5,0],[27,1]],{"male":"No new messages","female":"One new message"}]]] \ No newline at end of file +[0,"","",null,["Welcome von <",[8,0],[13,1]],[6,"test ",[3,0,["test new messages",[5,0]],[0,"No new messages",1,"One new message","w2","Two new Messages"]]],[6,"test ",[4,0,["test new messages of type ",[5,0],[27,1]],{"male":"No new messages","female":"One new message"}]]] \ No newline at end of file