Files
GitJournal/test/md_yaml_doc_test.dart
Vishesh Handa 2847e3f60f Add basic tag support
This allows you to be modify the tags from the NoteEditor. Related to
 #114. We still need to add some way to filter the notes by tag. Also,
the current tag editor doesn't show the tags from the other notes.
2020-05-13 01:01:40 +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);
});
}