bats-core / bats-assert

Common assertions for Bats
Creative Commons Zero v1.0 Universal
96 stars 42 forks source link

Incorrect usage of helpers should return 2 #10

Open jasonkarns opened 5 years ago

jasonkarns commented 5 years ago

Exit 1 is for when the assertions fail.

But for when the helper is used incorrectly, it should exit 2.

See diff and other compare tools as prior art. (0 means no diff, 1 means diff, 2 means error)