mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-15 16:03:34 +08:00

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.
25 lines
616 B
Dart
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);
|
|
});
|
|
}
|