Fix heredoc leading whitespace stripping #212
Annotations
3 errors
|
unit-tests
Process completed with exit code 1.
|
|
src/spec-tests/spec.test.ts > Oils Spec Tests > builtin-read.test.sh > [L446] read with IFS='': IFS='' | read x y <<EOF | a b c d | EOF | echo "[$x|$y]":
src/spec-tests/spec.test.ts#L224
AssertionError: UNEXPECTED PASS: This test was marked ## SKIP (Read with special IFS values not implemented) but now passes. Please remove the ## SKIP directive.
STDOUT:
expected: "[ a b c d|]"
actual: "[ a b c d|]\n"
STATUS:
expected: (not checked)
actual: 0
SCRIPT:
IFS=''
read x y <<EOF
a b c d
EOF
echo "[$x|$y]"
❯ src/spec-tests/spec.test.ts:224:20
|
|
src/spec-tests/spec.test.ts > Oils Spec Tests > builtin-read.test.sh > [L418] read with IFS=$'\n': IFS=$(echo -e '\n') | read var <<EOF | a b c | d e f | EO...:
src/spec-tests/spec.test.ts#L224
AssertionError: UNEXPECTED PASS: This test was marked ## SKIP (IFS with newline character not implemented) but now passes. Please remove the ## SKIP directive.
STDOUT:
expected: "[ a b c]"
actual: "[ a b c]\n"
STATUS:
expected: (not checked)
actual: 0
SCRIPT:
# The leading spaces are stripped if they appear in IFS.
IFS=$(echo -e '\n')
read var <<EOF
a b c
d e f
EOF
echo "[$var]"
❯ src/spec-tests/spec.test.ts:224:20
|