unison/unison-src/transcripts/update-test-to-non-test.md

26 lines
381 B
Markdown
Raw Permalink Normal View History

2023-11-22 05:35:59 +03:00
```ucm
scratch/main> builtins.merge
2023-11-22 05:35:59 +03:00
```
```unison
test> foo = []
```
After adding the test `foo`, we expect `view` to render it like a test. (Bug: It doesn't.)
```ucm
scratch/main> add
scratch/main> view foo
2023-11-22 05:35:59 +03:00
```
```unison
foo = 1
```
After updating `foo` to not be a test, we expect `view` to not render it like a test.
```ucm
scratch/main> update
scratch/main> view foo
2023-11-22 05:35:59 +03:00
```