#!/bin/bash setUp() { rm test*.yml || true } testInputXml() { cat >test.yml <BiBi EOL read -r -d '' expected << EOM cat: +content: BiBi +legs: "4" EOM X=$(./yq e -p=xml test.yml) assertEquals "$expected" "$X" X=$(./yq ea -p=xml test.yml) assertEquals "$expected" "$X" } source ./scripts/shunit2