unison/unison-src/transcripts/update-test-watch-roundtrip.md
Arya Irani 5604a48cea Add two transcripts
a failing transcript `add-test-watch-roundtrip`
and an ok-looking transcript for `update-test-watch-roundtrip`; though noting that the test gains a type signature.
2023-11-21 09:44:33 -05:00

404 B

.> builtins.mergeio

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" ]
.> 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!"
.> update