File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1- lib
1+ bin
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- curl -s https://raw.githubusercontent.com/TypedDevs/bashunit/main/install.sh | bash
3+ curl -s https://raw.githubusercontent.com/TypedDevs/bashunit/main/install.sh\
4+ | bash -s bin 0.7.0
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ cd "$(dirname "$0")"
66export PROJECT_DIR=" $( realpath " ." ) "
77export SRC=" ${PROJECT_DIR} /src"
88
9- lib /bashunit tests/* _test.sh
9+ bin /bashunit tests/* _test.sh
1010
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ function setUp() {
88function test_ice_cream_price_should_be_100_per_portion_for_low_quantities() {
99 result=$( main 1)
1010
11- assertSuccessfulCode
12- assertEquals " ${result} " " Total 100"
11+ assert_successful_code
12+ assert_equals " ${result} " " Total 100"
1313}
1414
1515function test_there_should_be_20_percent_discount_for_large_quantities_on_odd_days() {
@@ -19,8 +19,8 @@ function test_there_should_be_20_percent_discount_for_large_quantities_on_odd_da
1919
2020 result=$( main 4)
2121
22- assertSuccessfulCode
23- assertEquals " ${result} " " Total 320"
22+ assert_successful_code
23+ assert_equals " ${result} " " Total 320"
2424}
2525
2626function test_there_should_be_no_discount_even_for_large_quantities_on_even_days() {
@@ -30,6 +30,6 @@ function test_there_should_be_no_discount_even_for_large_quantities_on_even_days
3030
3131 result=$( main 4)
3232
33- assertSuccessfulCode
34- assertEquals " ${result} " " Total 400"
33+ assert_successful_code
34+ assert_equals " ${result} " " Total 400"
3535}
You can’t perform that action at this time.
0 commit comments