mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-09 13:10:40 +00:00
30 lines
599 B
Fish
30 lines
599 B
Fish
import plugins/fish-spec
|
|
|
|
function describe_expect_to_be_true
|
|
function it_returns_0_when_evaluated_value_returns_0
|
|
expect true --to-be-true
|
|
|
|
expect $status --to-equal 0
|
|
end
|
|
|
|
function it_returns_1_when_evaluated_value_returns_1
|
|
expect false --to-be-true
|
|
|
|
expect $status --to-equal 1
|
|
end
|
|
|
|
function it_returns_0_when_evaluated_function_returns_0
|
|
expect "eval true" --to-be-true
|
|
|
|
expect $status --to-equal 0
|
|
end
|
|
|
|
function it_returns_1_when_evaluated_function_returns_1
|
|
expect "eval false" --to-be-true
|
|
|
|
expect $status --to-equal 1
|
|
end
|
|
end
|
|
|
|
spec.run $argv
|