diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-09-05 16:58:58 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-09-06 15:30:26 +0200 |
commit | 73d05d80ae2c22a82439fc0cc4dc1fbfdc2bb1fa (patch) | |
tree | 391703bcf9eacff36c99c8811fab3905cb3868b2 /imag-link | |
parent | 4456c4240ecd07c2f202556ac3c8e8f3036cd671 (diff) |
Remove version part from IDs
Diffstat (limited to 'imag-link')
-rw-r--r-- | imag-link/tests/link-test.sh | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/imag-link/tests/link-test.sh b/imag-link/tests/link-test.sh index 31599cb8..3722565d 100644 --- a/imag-link/tests/link-test.sh +++ b/imag-link/tests/link-test.sh @@ -31,13 +31,13 @@ mktestentry() { } test_link_modificates() { - mktestentry "test~0.2.0" - mktestentry "test2~0.2.0" + mktestentry "test" + mktestentry "test2" - imag-link internal add --from "test~0.2.0" --to "test2~0.2.0" + imag-link internal add --from "test" --to "test2" - if [[ "$(default_entry)" -eq "$(cat_entry 'test~0.2.0')" ]] || - [[ "$(default_entry)" -eq "$(cat_entry 'test2~0.2.0')" ]] + if [[ "$(default_entry)" -eq "$(cat_entry 'test')" ]] || + [[ "$(default_entry)" -eq "$(cat_entry 'test2')" ]] then err "Entry was unmodified after linking" return 1; @@ -45,21 +45,21 @@ test_link_modificates() { } test_linking_links() { - mktestentry "test~0.2.0" - mktestentry "test2~0.2.0" + mktestentry "test" + mktestentry "test2" - imag-link internal add --from "test~0.2.0" --to "test2~0.2.0" + imag-link internal add --from "test" --to "test2" - if [[ "$(entry_linked_to '/test~0.2.0')" == "$(cat_entry 'test2~0.2.0')" ]]; + if [[ "$(entry_linked_to '/test')" == "$(cat_entry 'test2')" ]]; then - err "Linking to 'test~0.2.0' didn't succeed for 'test2~0.2.0'" - err $(cat_entry 'test2~0.2.0') + err "Linking to 'test' didn't succeed for 'test2'" + err $(cat_entry 'test2') fi - if [[ "$(entry_linked_to '/test2~0.2.0')" == "$(cat_entry 'test~0.2.0')" ]]; + if [[ "$(entry_linked_to '/test2')" == "$(cat_entry 'test')" ]]; then - err "Linking to 'test2~0.2.0' didn't succeed for 'test~0.2.0'" - err $(cat_entry 'test~0.2.0') + err "Linking to 'test2' didn't succeed for 'test'" + err $(cat_entry 'test') fi } |