File tree Expand file tree Collapse file tree 3 files changed +58
-2
lines changed
unison-cli/src/Unison/Codebase/Transcript
unison-src/transcripts/idempotent Expand file tree Collapse file tree 3 files changed +58
-2
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,6 @@ run isTest verbosity dir codebase runtime sbRuntime nRuntime ucmVersion baseURL
360
360
writeIORef isHidden $ hidden infoTags
361
361
writeIORef allowErrors $ expectingError infoTags
362
362
writeIORef expectFailure $ hasBug infoTags
363
- writeIORef hasErrors False
364
363
traverse_ (atomically . Q. enqueue cmdQueue . Just ) cmds
365
364
atomically . Q. enqueue cmdQueue $ Nothing
366
365
Cli. returnEarlyWithoutOutput
@@ -401,6 +400,7 @@ run isTest verbosity dir codebase runtime sbRuntime nRuntime ucmVersion baseURL
401
400
liftIO $ writeIORef isHidden Shown
402
401
liftIO $ writeIORef allowErrors False
403
402
liftIO $ writeIORef expectFailure False
403
+ liftIO $ writeIORef hasErrors False
404
404
maybe (liftIO finishTranscript) (uncurry processStanza) =<< atomically (Q. tryDequeue inputQueue)
405
405
406
406
awaitInput :: Cli (Either Event Input )
Original file line number Diff line number Diff line change
1
+ ``` ucm :hide
2
+ scratch/main> builtins.merge lib.builtin
3
+ ```
4
+
5
+ A first ` :error ` block works as expected.
6
+
7
+ ``` unison :error
8
+ foo : Nat
9
+ foo =
10
+ 1 +
11
+ ```
12
+
13
+ ``` ucm :added-by-ucm
14
+ Loading changes detected in scratch.u.
15
+
16
+ I got confused here:
17
+
18
+ 4 |
19
+
20
+ I was surprised to find an end of section here.
21
+ I was expecting one of these instead:
22
+
23
+ * bang
24
+ * do
25
+ * false
26
+ * force
27
+ * handle
28
+ * if
29
+ * let
30
+ * newline or semicolon
31
+ * quote
32
+ * termLink
33
+ * true
34
+ * tuple
35
+ * typeLink
36
+ ```
37
+
38
+ Later blocks should have their error state reset.
39
+
40
+ ``` unison
41
+ foo : Nat
42
+ foo =
43
+ 1 + 2
44
+ ```
45
+
46
+ ``` ucm :added-by-ucm
47
+ Loading changes detected in scratch.u.
48
+
49
+ I found and typechecked these definitions in scratch.u. If you
50
+ do an `add` or `update`, here's how your codebase would
51
+ change:
52
+
53
+ ⍟ These new definitions are ok to `add`:
54
+
55
+ foo : Nat
56
+ ```
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ test = cases
203
203
204
204
## Complete patterns with guards should be accepted
205
205
206
- ``` unison :error
206
+ ``` unison
207
207
test : Optional Nat -> Nat
208
208
test = cases
209
209
None -> 0
You can’t perform that action at this time.
0 commit comments