Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests are run even if bc is not installed #8

Closed
bfontaine opened this issue May 19, 2014 · 2 comments
Closed

Tests are run even if bc is not installed #8

bfontaine opened this issue May 19, 2014 · 2 comments

Comments

@bfontaine
Copy link

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.
@b-long
Copy link

b-long commented Feb 26, 2015

This is probably safe to mark as a non-issue since #7 was merged.

@lehmannro
Copy link
Owner

Yup, should no longer be an issue in v1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants