mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-26 10:38:13 +08:00
26 lines
643 B
Dart
26 lines
643 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(body: "a", props: aProps);
|
|
var b = MdYamlDoc(body: "a", props: bProps);
|
|
expect(a, b);
|
|
});
|
|
}
|