Add more unit tests for rc.d scripts
This commit is contained in:
parent
6082339fba
commit
5c53c502e0
1 changed files with 15 additions and 0 deletions
15
.config/shell/rc.d/test/locale-utf-8.bats
Normal file
15
.config/shell/rc.d/test/locale-utf-8.bats
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
setup() {
|
||||
testfile="$BATS_TEST_DIRNAME/../locale-utf-8.sh"
|
||||
}
|
||||
|
||||
teardown() {
|
||||
export LC_ALL=""
|
||||
export LANG=""
|
||||
}
|
||||
|
||||
@test "Sets LC_ALL and LANG to en_US.utf-8" {
|
||||
source $testfile
|
||||
expected="en_US.utf-8"
|
||||
[ "$LC_ALL" = "en_US.utf-8" ]
|
||||
[ "$LANG" = "en_US.utf-8" ]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue