added some simple tests for Months class
This commit is contained in:
parent
4ede1c3efd
commit
c7dbd1520f
1 changed files with 11 additions and 0 deletions
|
@ -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));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue