fibonacci.yml 1.0 KB

12345678910111213141516171819202122232425262728
  1. feature:
  2. title: Fibonacci
  3. language: en
  4. line: 1
  5. description: |-
  6. In order to calculate super fast fibonacci series
  7. As a pythonista
  8. I want to use Python for that
  9. scenarios:
  10. -
  11. type: outline
  12. title: Series
  13. line: 6
  14. steps:
  15. - { keyword_type: 'When', type: 'When', text: 'I ask python to calculate fibonacci up to <n>', line: 7 }
  16. - { keyword_type: 'Then', type: 'Then', text: 'it should give me <series>', line: 8 }
  17. examples:
  18. 11: [ n , series ]
  19. 12: [ 1 , '[]' ]
  20. 13: [ 2 , '[1, 1]' ]
  21. 14: [ 3 , '[1, 1, 2]' ]
  22. 15: [ 4 , '[1, 1, 2, 3]' ]
  23. 16: [ 6 , '[1, 1, 2, 3, 5]' ]
  24. 17: [ 9 , '[1, 1, 2, 3, 5, 8]' ]
  25. 18: [ 100 , '[1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]' ]