Re-Enable Simulation dirty-flag test
In preparation for refactoring, and exposing the dirty flag we re-enable the dirty flag test on resetMap
This commit is contained in:
parent
ae26496730
commit
1f435617da
1 changed files with 7 additions and 4 deletions
|
@ -27,14 +27,17 @@ void main() {
|
||||||
expect(sut.map, isNot(same(oldMap)));
|
expect(sut.map, isNot(same(oldMap)));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
group("reset", () {
|
group("resetMap", () {
|
||||||
test("returns a map filled with 'false' ", () {
|
test("sets the internal map filled with 'false' ", () {
|
||||||
expect(sut.reset(), allOf(TypeMatcher<Grid>(), isNot(contains(true))));
|
sut.map.set(1, 1, true);
|
||||||
|
sut.reset();
|
||||||
|
expect(sut.map, allOf(TypeMatcher<Grid>(), isNot(contains(true))));
|
||||||
});
|
});
|
||||||
test("sets the simulation to need re-rendering", () {
|
test("sets the simulation to need re-rendering", () {
|
||||||
|
sut.dirty = false;
|
||||||
sut.reset();
|
sut.reset();
|
||||||
expect(sut.dirty, true);
|
expect(sut.dirty, true);
|
||||||
}, skip: "can not find a way to set dirty to true first yet");
|
});
|
||||||
});
|
});
|
||||||
group("save&load", () {
|
group("save&load", () {
|
||||||
test(
|
test(
|
||||||
|
|
Loading…
Reference in a new issue