diff --git a/test/unit/array_test.dart b/test/unit/array_test.dart index e2731f6..747e648 100644 --- a/test/unit/array_test.dart +++ b/test/unit/array_test.dart @@ -7,17 +7,21 @@ import 'package:test/test.dart'; void main() { group('SplayTreeMap', () { test('indices are ordered in value', () { - final SplayTreeMap array = - SplayTreeMap.from({1: 'a', 0: 'b', 2: 'c'}); + final SplayTreeMap array = + SplayTreeMap.from({ + '1': 'a', + '0': 'b', + '2': 'c', + }); expect(array.values, ['b', 'a', 'c']); }); test('indices are ordered in value 2', () { - final SplayTreeMap array = SplayTreeMap(); - array[1] = 'c'; - array[0] = 'b'; - array[2] = 'd'; + final SplayTreeMap array = SplayTreeMap(); + array['1'] = 'c'; + array['0'] = 'b'; + array['2'] = 'd'; expect(array.values, ['b', 'c', 'd']); });