Implement useLocalStorage(key, initialValue, storage) returning[get, set]. storage is a Map mocking localStorage.
useLocalStorage(key, initialValue, storage)
[get, set]
storage
solve(key, initial, ops) returns final { state, storage }.
solve(key, initial, ops)
{ state, storage }
Sample tests