Sha256: e03e4058c0ba763ddaffddbe466feac291db34421d137332103dfe5f61944ed2

Contents?: true

Size: 202 Bytes

Versions: 3

Compression:

Stored size: 202 Bytes

Contents

When(/^I ask Tcl to calculate fibonacci for (\d+)$/) do |n|
  @fib_result = @fib.eval("fib #{n}").to_i
end

Then(/^it should give me (\d+)$/) do |expected|
  expect(@fib_result).to eq expected.to_i
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-3.0.1 examples/tcl/features/step_definitions/fib_steps.rb
cucumber-3.0.0 examples/tcl/features/step_definitions/fib_steps.rb
cucumber-3.0.0.pre.2 examples/tcl/features/step_definitions/fib_steps.rb