Files
GitJournal/test/md_yaml_doc_test.dart
Vishesh Handa 88552fe8e9 Revert "Workaround intl bug by harding 'en' locale"
This reverts commit 303192d9d575b26a77a00f7a62212f310ec1e329.
This reverts commit cd9d128b47ed523036f7ae1232ec7adcf04ed8a9.

GitJournal is used by non-English speakers (a lot in China and Russia)
and while we don't support those languages completely, we do support
them a little bit. I don't want to loose this functionality. It would be
better for us to fix the bug in intl.
2020-06-10 09:31:08 +02:00

25 lines
616 B
Dart

import 'dart:collection';
import 'package:gitjournal/core/md_yaml_doc.dart';
import 'package:test/test.dart';
void main() {
test('Equality', () {
// ignore: prefer_collection_literals
var aProps = LinkedHashMap<String, dynamic>();
aProps['a'] = 1;
aProps['title'] = "Foo";
aProps['list'] = ["Foo", "Bar", 1];
// ignore: prefer_collection_literals
var bProps = LinkedHashMap<String, dynamic>();
bProps['a'] = 1;
bProps['title'] = "Foo";
bProps['list'] = ["Foo", "Bar", 1];
var a = MdYamlDoc("a", aProps);
var b = MdYamlDoc("a", bProps);
expect(a, b);
});
}