You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
oh-my-fish/plugins/fish-spec/spec/expect.to_equal.spec.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