-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These exposed a few issues with the output formatting, so those are also addressed here.
- Loading branch information
Showing
6 changed files
with
93 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This transcript will error, because we’re claiming that the stanza has a bug, but `help` works as expected. | ||
|
||
``` ucm :bug | ||
scratch/main> help edit | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
This transcript will error, because we’re claiming that the stanza has a bug, but `help` works as expected. | ||
|
||
``` ucm :bug | ||
scratch/main> help edit | ||
edit | ||
`edit foo` prepends the definition of `foo` to the top of the most recently saved file. | ||
`edit` without arguments invokes a search to select a definition for editing, which requires that `fzf` can be found within your PATH. | ||
``` | ||
|
||
🎉 | ||
|
||
## You fixed a bug\! | ||
|
||
The stanza above with `:bug` is now passing\! You can remove `:bug` and close any appropriate Github issues. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This transcript will fail, because we’re claiming that the stanza has a bug, but `do.something` errors as expected. | ||
|
||
``` ucm :error :bug | ||
scratch/main> do.something | ||
``` |
19 changes: 19 additions & 0 deletions
19
unison-src/transcripts/errors/obsolete-error-bug.output.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
This transcript will fail, because we’re claiming that the stanza has a bug, but `do.something` errors as expected. | ||
|
||
``` ucm :error :bug | ||
scratch/main> do.something | ||
``` | ||
|
||
🎉 | ||
|
||
## You fixed a bug\! | ||
|
||
The stanza above marked with `:error :bug` is now failing with | ||
|
||
``` | ||
⚠️ | ||
I don't know how to do.something. Type `help` or `?` to get | ||
help. | ||
``` | ||
|
||
so you can remove `:bug` and close any appropriate Github issues. If the error message is different from the expected error message, open a new issue and reference it in this transcript. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
This tests that `:bug` behaves similarly to `:error` when the stanza fails. | ||
|
||
``` ucm :bug | ||
scratch/main> do.something | ||
⚠️ | ||
I don't know how to do.something. Type `help` or `?` to get | ||
help. | ||
``` | ||
|
||
And when combined with `:error`, it should expect a successful result. | ||
|
||
``` ucm :error :bug | ||
scratch/main> help edit | ||
edit | ||
`edit foo` prepends the definition of `foo` to the top of the most recently saved file. | ||
`edit` without arguments invokes a search to select a definition for editing, which requires that `fzf` can be found within your PATH. | ||
``` |