Commit graph

61 commits

Author SHA1 Message Date
db4434cd20 Remove Time on FakeHome
We'll have a lot more stuff that we need to compute from the actual
interactions, so let's just get the boilerplate ready.
2026-01-04 19:42:43 +01:00
c8e1f0c9fe Make sure that the first interaction sets the time
This is what happens in the `NightLight` program as well.
2026-01-04 19:41:34 +01:00
48aaabde3b Add tests for colors 2026-01-04 12:10:07 +01:00
7125fee28e Parse color commands in FakeHome 2026-01-04 12:10:07 +01:00
6baf725765 Put Arbitraries on the entire test class 2026-01-04 12:10:07 +01:00
c7c5de9e21 State -> NightLightStateMachine 2026-01-04 12:10:06 +01:00
285874777a Get rid of NightLightStateMachine in the tests 2026-01-04 12:09:09 +01:00
bd550bfcd9 Encapsulate State to make it impossible to read
This was NightLightStateMachine's purpose, but it fits equally well
in the actual production code.
2026-01-04 12:09:07 +01:00
a741938f89 Stop propagating parse errors throughout the tests 2026-01-04 12:08:10 +01:00
109ebde64a Write the first test 2026-01-04 12:08:10 +01:00
fc069edf31 Implement FakeHome 2026-01-04 12:08:10 +01:00