Skip to content

Commit 59d4430

Browse files
committed
Install 0.7.0
1 parent 73f92f8 commit 59d4430

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

example-bashunit/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lib
1+
bin

example-bashunit/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
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

example-bashunit/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ cd "$(dirname "$0")"
66
export PROJECT_DIR="$(realpath ".")"
77
export SRC="${PROJECT_DIR}/src"
88

9-
lib/bashunit tests/*_test.sh
9+
bin/bashunit tests/*_test.sh
1010

example-bashunit/tests/unit_test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ function setUp() {
88
function 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

1515
function 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

2626
function 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
}

0 commit comments

Comments
 (0)