Move NUL-handling tests to their own file

This commit is contained in:
Fabian Boehm 2023-06-23 16:26:30 +02:00
parent 78940a6026
commit 41568eb2a8
2 changed files with 7 additions and 5 deletions

7
tests/checks/nuls.fish Normal file
View file

@ -0,0 +1,7 @@
#RUN: %fish %s
# NUL-handling
echo foo\x00bar | string escape
# CHECK: foo\x00bar
echo foo\\x00bar | string escape
# CHECK: foo\\x00bar

View file

@ -955,8 +955,3 @@ string shorten -m0 foo bar asodjsaoidj
# CHECK: foo
# CHECK: bar
# CHECK: asodjsaoidj
echo foo\x00bar | string escape
# CHECK: foo\x00bar
echo foo\\x00bar | string escape
# CHECK: foo\\x00bar