Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe "fibonacci" do
- [
- [0, 0],
- [1, 1],
- [2, 1],
- [3, 2],
- [4, 3],
- [5, 5],
- [6, 8]
- ].each do |index, value|
- it "of #{index} should be #{value}" do
- fib(index).should == value
- end
- end
- def fib
- # yay algorithm
- end
- end
Add Comment
Please, Sign In to add comment