diff --git a/imag-link/tests/link-test.sh b/imag-link/tests/link-test.sh index 9de309ac..1f422f96 100644 --- a/imag-link/tests/link-test.sh +++ b/imag-link/tests/link-test.sh @@ -50,16 +50,16 @@ test_linking_links() { imag-link internal add --from "test" --to "test2" - if [[ "$(entry_linked_to 'test')" == "$(cat_entry 'test2')" ]]; + if [[ "$(entry_linked_to '"test"')" != "$(cat_entry 'test2')" ]]; then err "Linking to 'test' didn't succeed for 'test2'" - err $(cat_entry 'test2') + err "\n$(cat_entry 'test2')\n" fi - if [[ "$(entry_linked_to 'test2')" == "$(cat_entry 'test')" ]]; + if [[ "$(entry_linked_to '"test2"')" != "$(cat_entry 'test')" ]]; then err "Linking to 'test2' didn't succeed for 'test'" - err $(cat_entry 'test') + err "\n$(cat_entry 'test')\n" fi }