2023-11-21 17:44:33 +03:00
|
|
|
|
|
|
|
```ucm:hide
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> builtins.merge
|
2023-11-21 17:44:33 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
Given a test that depends on another definition,
|
|
|
|
|
|
|
|
```unison:hide
|
|
|
|
foo n = n + 1
|
|
|
|
|
|
|
|
test> mynamespace.foo.test =
|
|
|
|
n = 2
|
|
|
|
if (foo n) == 2 then [ Ok "passed" ] else [ Fail "wat" ]
|
|
|
|
```
|
|
|
|
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
2023-11-21 17:44:33 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
if we change the type of the dependency, the test should show in the scratch file as a test watch.
|
|
|
|
|
|
|
|
```unison
|
|
|
|
foo n = "hello, world!"
|
|
|
|
```
|
|
|
|
|
|
|
|
```ucm:error
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> update
|
2023-11-21 17:44:33 +03:00
|
|
|
```
|