egonSchiele / contracts.ruby

Contracts for Ruby.
http://egonschiele.github.com/contracts.ruby
BSD 2-Clause "Simplified" License
1.44k stars 82 forks source link

Fix potentially incorrect example in feature file. #287

Closed frewsxcv closed 1 month ago

frewsxcv commented 6 years ago

1 - 1 is not a positive natural number

PikachuEXE commented 1 month ago

Oops no one check this for 6 years (I am a new helper here The point of returning 0 on inputing 1 is exactly the point to test the return contract error is raised See Scenario: Rejects negative integers as a return value

If you meant to do something else please reply