mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-09 13:10:40 +00:00
30 lines
621 B
Fish
30 lines
621 B
Fish
import plugins/fish-spec
|
|
|
|
function describe_expect_to_equal
|
|
function it_returns_0_when_compared_values_are_the_same
|
|
expect 'equal' --to-equal 'equal'
|
|
|
|
expect $status --to-equal 0
|
|
end
|
|
|
|
function it_returns_1_when_compared_values_are_different
|
|
expect 'equal' --to-equal 'different'
|
|
|
|
expect $status --to-equal 1
|
|
end
|
|
|
|
function it_returns_0_when_list_items_are_in_the_same_order
|
|
expect 1 2 --to-equal 1 2
|
|
|
|
expect $status --to-equal 0
|
|
end
|
|
|
|
function it_returns_1_when_list_items_are_in_different_order
|
|
expect 1 2 --to-equal 2 1
|
|
|
|
expect $status --to-equal 1
|
|
end
|
|
end
|
|
|
|
spec.run $argv
|