ekmett / guanxi

Relational programming in Haskell. Mostly developed on twitch.
http://twitch.tv/ekmett
Other
253 stars 29 forks source link

Add Spec.Ref tests for once/writeRef interaction #23

Open adamgundry opened 11 months ago

adamgundry commented 11 months ago

This adds tests demonstrating the problem described in #22 between once and writeRef. (Plus a couple of tiny commits to make guanxi build on GHC 9.2.) The tests will currently fail: a line like rs `shouldBe` [2,1] `butIs` [2,2] means the test expects a result of [2,1] but the current implementation delivers [2,2].

cc @np