mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-10 13:08:24 +08:00
26 lines
617 B
Dart
26 lines
617 B
Dart
import 'dart:collection';
|
|
|
|
import 'package:test/test.dart';
|
|
|
|
import 'package:gitjournal/core/md_yaml_doc.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);
|
|
});
|
|
}
|