Skip to content

Commit bb3b65e

Browse files
committed
test: Improve test names
1 parent 588abf2 commit bb3b65e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/shopt.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
load './util/init.sh'
44

5-
@test "Shopt push works" {
5+
@test "core.shotpt_push works" {
66
shopt -u extglob
77

88
core.shopt_push -s extglob
@@ -17,7 +17,7 @@ load './util/init.sh'
1717
refute shopt -q extglob
1818
}
1919

20-
@test "Shopt works multi" {
20+
@test "core.shopt_push works 2" {
2121
shopt -u extglob
2222
shopt -u dotglob
2323
shopt -u failglob

tests/trap.bats

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@ load './util/init.sh'
66
# actual execution of the functions on the signal. There seems to be a limitation
77
# of Bats that prevents this from working
88

9-
@test "Fails when function specified does not exist" {
9+
@test "core.trap_add fails when function specified does not exist" {
1010
run core.trap_add 'nonexistent' 'USR1'
1111

1212
assert_failure
1313
assert_output -p "Function 'nonexistent' is not defined"
1414
}
1515

16-
@test "Fails when number is given for signal" {
16+
@test "core.trap_add fails when number is given for signal" {
1717
run core.trap_add 'function' '0'
1818

1919
assert_failure
2020
assert_output -p "Passing numbers for the signal specs is prohibited"
2121
}
2222

23-
@test "adds trap function properly" {
23+
@test "core.trap_add adds trap function properly" {
2424
somefunction() { :; }
2525
core.trap_add 'somefunction' 'USR1'
2626

2727
[ "${___global_trap_table___[USR1]}" = $'\x1Csomefunction' ]
2828
}
2929

30-
@test "adds trap function properly 2" {
30+
@test "core.trap_add adds function properly 2" {
3131
somefunction() { :; }
3232
somefunction2() { :; }
3333
core.trap_add 'somefunction' 'USR1'
@@ -36,15 +36,15 @@ load './util/init.sh'
3636
[ "${___global_trap_table___[USR1]}" = $'\x1Csomefunction\x1Csomefunction2' ]
3737
}
3838

39-
@test "removes trap function properly 1" {
39+
@test "core.trap_remove removes trap function properly 1" {
4040
somefunction() { :; }
4141
core.trap_add 'somefunction' 'USR1'
4242
core.trap_remove 'somefunction' 'USR1'
4343

4444
[ "${___global_trap_table___[USR1]}" = '' ]
4545
}
4646

47-
@test "removes trap function properly 2" {
47+
@test "core.trap_remove removes trap function properly 2" {
4848
somefunction() { :; }
4949
somefunction2() { :; }
5050
core.trap_add 'somefunction' 'USR1'
@@ -54,7 +54,7 @@ load './util/init.sh'
5454
[ "${___global_trap_table___[USR1]}" = $'\x1Csomefunction2' ]
5555
}
5656

57-
@test "removes trap function properly 3" {
57+
@test "core.trap_remove removes trap function properly 3" {
5858
somefunction() { :; }
5959
somefunction2() { :; }
6060
core.trap_add 'somefunction' 'USR1'

0 commit comments

Comments
 (0)