Fix link test to check properly

This commit is contained in:
Matthias Beyer 2016-09-06 10:45:36 +02:00
parent 2e6f833bf2
commit 584ac3d46e

View file

@ -50,16 +50,16 @@ test_linking_links() {
imag-link internal add --from "test" --to "test2" 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 then
err "Linking to 'test' didn't succeed for 'test2'" err "Linking to 'test' didn't succeed for 'test2'"
err $(cat_entry 'test2') err "\n$(cat_entry 'test2')\n"
fi fi
if [[ "$(entry_linked_to 'test2')" == "$(cat_entry 'test')" ]]; if [[ "$(entry_linked_to '"test2"')" != "$(cat_entry 'test')" ]];
then then
err "Linking to 'test2' didn't succeed for 'test'" err "Linking to 'test2' didn't succeed for 'test'"
err $(cat_entry 'test') err "\n$(cat_entry 'test')\n"
fi fi
} }