1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-08 09:05:34 +00:00

initial commit

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2025-09-26 18:41:14 -04:00
commit c39114f1a9
64 changed files with 8704 additions and 0 deletions

125
testdata/long_diff.txt vendored Normal file
View file

@ -0,0 +1,125 @@
# Verify the behaviour of cmp in the case of a small diff between
# two large files
unquote dir/script.txt
! testscript dir
env
cmpenv stdout stdout.golden
-- dir/script.txt --
>cmp a b
>
>-- a --
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>-- b --
>b
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
>a
-- stdout.golden --
** RUN script **
> cmp a b
diff a b
--- a
+++ b
@@ -1,4 +1,4 @@
-a
+b
a
a
a
FAIL: $$WORK${/}dir${/}script.txt:1: a and b differ