Tests are run even if `bc` is not installed
Closed this issue · 2 comments
bfontaine commented
Here is my test file for mvb
:
#! /bin/bash
. assert.sh
# `mvb a b` should fail if 'b' doesn't exist
assert_raises 'mvb a b' 1
# `mvb a b` should rename 'b' to 'a'
touch b
assert_raises 'mvb a b' 0
assert_raises '[ -f a ]' 0
rm a
# `mvb a b/` should mv 'b/a' in 'a'
mkdir b
touch b/a
assert_raises 'mvb a b/' 0
assert_raises '[ -f a ]' 0
rm a
rmdir b
assert_end 'mvb'
I tested on Travis and bc
is not installed by default, here is the (end of the) log:
$ cd tests;bash ./tests.sh
assert.sh: line 81: bc: command not found
all 5 mvb tests passed in s.
�The command "bash ./tests.sh" exited with 0.�
Done. Your build exited with 0.
lehmannro commented
Yup, should no longer be an issue in v1.1.