fibonacci.feature 700 B

1234567891011121314151617181920
  1. Feature: Fibonacci
  2. In order to calculate super fast fibonacci series
  3. As a pythonista
  4. I want to use Python for that
  5. Scenario Outline: Series
  6. When I ask python to calculate fibonacci up to <n>
  7. Then it should give me <series>
  8. Examples:
  9. | n | series |
  10. | 1 | [] |
  11. | 2 | [1, 1] |
  12. | 3 | [1, 1, 2] |
  13. | 4 | [1, 1, 2, 3] |
  14. | 6 | [1, 1, 2, 3, 5] |
  15. | 9 | [1, 1, 2, 3, 5, 8] |
  16. | 100 | [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] |