github.com/rogpeppe/go-internal@v1.12.1-0.20240509064211-c8567cf8e95f/testscript/testdata/testscript_update_script.txt (about) 1 # Check that we support both txt and txtar extensions. 2 3 unquote scripts/testscript.txt 4 unquote testscript-new.txt 5 6 cp scripts/testscript.txt scripts/testscript2.txtar 7 8 testscript -update scripts 9 cmp scripts/testscript.txt testscript-new.txt 10 cmp scripts/testscript2.txtar testscript-new.txt 11 12 -- scripts/testscript.txt -- 13 >fprintargs stdout right 14 >cmp stdout expect 15 > 16 >-- expect -- 17 >wrong 18 -- testscript-new.txt -- 19 >fprintargs stdout right 20 >cmp stdout expect 21 > 22 >-- expect -- 23 >right