From c7dbd1520f5fca83e393efcae3667f46994e1e1a Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Tue, 20 Oct 2020 17:22:48 +0200 Subject: [PATCH] added some simple tests for Months class --- test/widget_test.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/widget_test.dart b/test/widget_test.dart index de55555..15a2aec 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -318,4 +318,15 @@ void main() { }); }); }); + group("Months", () { + test("toString", () { + expect("${Months.january}" == "january", equals(true)); + }); + test("==", () { + expect(Months.january == Month("january", 0, 0), equals(true)); + }); + test("!=", () { + expect(Months.january == Month("february", 0, 0), equals(false)); + }); + }); }