added some simple tests for Months class

This commit is contained in:
BroodjeAap 2020-10-20 17:22:48 +02:00
parent 4ede1c3efd
commit c7dbd1520f

View file

@ -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));
});
});
}