unison/unison-src/transcripts/update-test-watch-roundtrip.md
2024-06-25 11:11:07 -07:00

435 B

scratch/main> builtins.merge

Given a test that depends on another definition,

foo n = n + 1

test> mynamespace.foo.test =
  n = 2
  if (foo n) == 2 then [ Ok "passed" ] else [ Fail "wat" ]
scratch/main> add

if we change the type of the dependency, the test should show in the scratch file as a test watch.

foo n = "hello, world!"
scratch/main> update