Commit Graph

34 Commits

Author SHA1 Message Date
Mitchell Rosen
bbb04d9da2 get the transcripts passing (but a couple are still broken) 2024-08-26 13:37:19 -04:00
Greg Pfeil
b657d0dd50
Fix a few transcripts with incorrect Markdown
These weren’t errors in any way, but the `cmark`-produced outputs made
it clear that some of our transcripts weren’t formatted the way we
intended.
2024-07-10 13:56:10 -06:00
Greg Pfeil
0031542faf
Add a space before code block info strings
This is for consistency with the `cmark` style. Now the blocks we still
pretty-print ourselves will match the bulk of them that `cmark`
produces.
2024-07-10 13:56:07 -06:00
Greg Pfeil
1dc181b99a
Update the transcripts with cmark
`cmark`’s pretty-printer matches our output pretty well, with a few differences:
- it puts a space between the fence and the info string for in code blocks;
- it prefers `-` over `*` for bulleted lists (as do I) and it indents them;
- it `\`-escapes certain chars very conservatively;
- it prefers indented/unfenced code blocks if there is no info string; and
- it prefers `*` over `_` (unlike any sane person).

This also shows how the change fixes a number of issues:
- fix2158-1.output.md also illustrates how this change fixes #1809;
- alias-many.output.md and input-parse-errors.output.md show how fenced
  code blocks without an info string would use the beginning of the
  content as the info string;
- transcripts-round-trip/main.output.md shows how output blocks for
  generated `unison` stanzas (which could contain nested fenced blocks)
  might not have long-enough fences; and
- error-messages.output.md and generic-parse-errors.output.md show how
  Unison errors were reported on the wrong line number (and thus the
  printed error lines were also incorrect).
2024-07-10 13:37:51 -06:00
Chris Penner
b6b2adb075 Resolve merge conflicts with trunk 2024-06-27 10:55:45 -07:00
Greg Pfeil
1a753ffb5b
Group test results by definition
Follow-up to #5140.
2024-06-26 23:40:16 -06:00
Greg Pfeil
fd197f1369
Update the transcript outputs 2024-06-26 14:45:49 -06:00
Chris Penner
5ca1eb3b8d Replace '.' references with scratch/main 2024-06-25 11:11:07 -07:00
Arya Irani
2cf96a36ae
deprecate cd, up; add find-in (#4883)
* deprecate `cd`, `up`, hide `reset-root`, add `find-in`, hides unimplemented `update.builtins`
Co-authored-by: Chris Penner <christopher.penner@gmail.com>
2024-04-28 21:30:02 -04:00
Dan Doel
12ec621d23 Add back padding when errors/traces actually occur 2024-04-16 14:26:28 -04:00
Dan Doel
9f2089798f Transcript output updates for error formatting 2024-04-16 13:52:17 -04:00
andrii
8b857b152c Adding a message for when ucm started reloading changes 2023-12-22 12:55:24 +01:00
Rúnar
0f58263ac5 Added IO.randomBytes builtin 2023-07-02 00:31:11 -04:00
Rúnar
a25b6aa687 Fixed transcript 2023-06-22 03:02:49 -04:00
Rúnar
646dddbdad Fixed up transcripts 2023-06-22 00:46:40 -04:00
Paul Chiusano
685a202319 update transcripts 2022-12-01 23:51:11 -06:00
Dan Doel
74c3c7dda3 Generate stack traces for calls to bug and similar. 2022-10-20 16:21:15 -04:00
Travis Staton
320c0c51d2 transcript updates 2022-08-15 16:00:24 -04:00
iamevn
fdddfacc7c stack exec transcripts 2022-04-04 15:56:08 -07:00
Chris Penner
9e9ec0f5fc
Fix transcripts/io.md to work on windows builds. (#2942)
* Use PATH so this test works on windows systems

* Update transcript output
2022-02-23 13:43:17 -06:00
Paul Chiusano
b3997ea97a transcript refresh 2022-02-12 23:20:27 -06:00
Chris Penner
8af6377173
Fix implementation of getbuffering builtin to actually return Either (#2779)
* Fix implementation of getbuffering builtin to actually return Either

* Test that we actually get back the expected buffering mode
2022-01-06 10:22:43 -06:00
Chris Penner
c8fe85d75b Remove -- checks in io transcript 2021-11-04 14:44:00 -06:00
iamevn
83d363f0e0 run within ucm handles -- similarly to the command line
-- is optional, the first one is filtered out from the argument list.

moved
2021-10-23 18:21:15 -07:00
iamevn
d24627ff83 add tests for getArgs
tests need to be formatted differently because they need to be `run` instead of `io.test`ed
2021-10-23 10:10:57 -07:00
iamevn
6f3870d5ea add test for getCurrentDirectory and getTempDirectory, add Evan to CONTRIBUTORS 2021-10-22 15:12:10 -07:00
Rúnar
249bf3ba25 Merge branch 'trunk' of github.com:unisonweb/unison into topic/getLine 2021-07-23 22:25:01 -04:00
Rúnar
e1e4174981 Merge branch 'trunk' of github.com:unisonweb/unison into topic/getline 2021-07-23 14:43:39 -04:00
Stew O'Connor
1bb4bfbfb3 Add a getEnv IO function which fetch environment variables 2021-07-20 13:56:09 -07:00
Paul Chiusano
c46e863ab0 Merge remote-tracking branch 'origin/trunk' into topic/directorycontent
# Conflicts:
#	unison-src/transcripts/merges.output.md
#	unison-src/transcripts/reflog.output.md
#	unison-src/transcripts/squash.output.md
2021-06-11 11:04:06 -05:00
Paul Chiusano
151f8e92b9 improve tests 2021-05-26 11:47:51 -05:00
Rúnar
96bef3055c Add tests for directoryContents 2021-05-21 20:30:22 -04:00
Dan Doel
3a2254b96e Transcript updates 2021-05-06 16:21:00 -04:00
Paul Chiusano
4057c9b645 Add failing test that exercises the various file and buffering modes 2021-05-05 12:57:38 -05:00