mirror of
https://github.com/mikefarah/yq.git
synced 2026-08-24 00:04:50 +08:00
add tests for root node unwrap bug in previous versions (#1837)
This commit is contained in:
@@ -72,6 +72,15 @@ EOL
|
||||
assertEquals "\"cat\"" "$X"
|
||||
}
|
||||
|
||||
testOutputYamlRawOnRoot() {
|
||||
cat >test.yml <<EOL
|
||||
'a'
|
||||
EOL
|
||||
|
||||
X=$(./yq e -r '.' test.yml)
|
||||
assertEquals "a" "$X"
|
||||
}
|
||||
|
||||
testOutputJsonRaw() {
|
||||
cat >test.yml <<EOL
|
||||
a: cat
|
||||
|
||||
Reference in New Issue
Block a user