Fix link test to check properly
This commit is contained in:
parent
2e6f833bf2
commit
584ac3d46e
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue