1
0
Fork 0
euler-presentation-code/spec/problem-2.rb
2015-05-12 16:45:41 -04:00

12 lines
302 B
Ruby

require_relative 'spec_helper'
require_relative '../solutions/solution-2'
describe 'Even Fibonacci numbers' do
it 'works for the first ten Fibonacci numbers' do
expect(solution_2(90)).to eq(44)
end
it 'works for the known answer' do
expect(solution_2(4000000)).to eq(4613732)
end
end