Skip to content

Commit

Permalink
chore: update url tests for Pharo
Browse files Browse the repository at this point in the history
  • Loading branch information
theseion authored and fniephaus committed Sep 26, 2023
1 parent d680cfb commit 7376bb8
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions tests/pharo_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ test_get_image_url() {
image_url="$(pharo::get_image_url "Pharo32-stable")"
assertEquals "get.pharo.org/stable" "${image_url}"

image_url="$(pharo::get_image_url "Pharo64-alpha")"
assertEquals "get.pharo.org/64/alpha" "${image_url}"

image_url="$(pharo::get_image_url "Pharo64-stable")"
assertEquals "get.pharo.org/64/stable" "${image_url}"

image_url="$(pharo::get_image_url "Pharo64-12")"
assertEquals "get.pharo.org/64/120" "${image_url}"

image_url="$(pharo::get_image_url "Pharo64-11")"
assertEquals "get.pharo.org/64/110" "${image_url}"

Expand Down Expand Up @@ -54,16 +63,19 @@ test_get_vm_url() {
local vm_url

vm_url="$(pharo::get_vm_url "Pharo32-alpha")"
assertEquals "get.pharo.org/vmLatest110" "${vm_url}"
assertEquals "get.pharo.org/vmLatest120" "${vm_url}"

vm_url="$(pharo::get_vm_url "Pharo64-alpha")"
assertEquals "get.pharo.org/64/vmLatest110" "${vm_url}"
assertEquals "get.pharo.org/64/vmLatest120" "${vm_url}"

vm_url="$(pharo::get_vm_url "Pharo32-stable")"
assertEquals "get.pharo.org/vm100" "${vm_url}"
assertEquals "get.pharo.org/vm110" "${vm_url}"

vm_url="$(pharo::get_vm_url "Pharo64-stable")"
assertEquals "get.pharo.org/64/vm100" "${vm_url}"
assertEquals "get.pharo.org/64/vm110" "${vm_url}"

vm_url="$(pharo::get_vm_url "Pharo32-12")"
assertEquals "get.pharo.org/vm120" "${vm_url}"

vm_url="$(pharo::get_vm_url "Pharo32-11")"
assertEquals "get.pharo.org/vm110" "${vm_url}"
Expand Down

0 comments on commit 7376bb8

Please sign in to comment.