# Counter State Tests that Thinker can create a counter, either via stateful controls (inc/dec bindings) or via state machines. Both approaches are valid. ## Setup - clear history ## Steps ### 1. Create counter - send: create a counter starting at 0 with increment and decrement buttons - expect_response: contains "counter" or "count" or "Zähler" or "0" - expect_actions: length >= 2 - expect_actions: any action contains "increment" or "inc" or "plus" or "+1" or "add" - expect_actions: any action contains "decrement" or "dec" or "minus" or "-1" or "sub" ### 2. Check state - expect_state: topic contains "counter" or "count" or "button" or "Zähler" ### 3. Ask for current value - send: what is the current count? - expect_response: contains "0" or "zero" ### 4. Increment - action: first matching "+1" or "inc" or "plus" - expect_response: contains "1" or "one" or "increment" or "counter" or "Zähler" or "Navigated" ### 5. Increment again - action: first matching "+1" or "inc" or "plus" - expect_response: contains "2" or "two" or "increment" or "counter" or "Zähler" or "Navigated" ### 6. Decrement - action: first matching "-1" or "dec" or "minus" - expect_response: contains "1" or "one" or "decrement" or "counter" or "Zähler" or "Navigated" ### 7. Verify memorizer tracks it - expect_state: topic contains "count" or "counter" or "Zähler"