- Коректно
- 4 успешни тест(а)
- 0 неуспешни тест(а)
.... Finished in 0.00577 seconds 4 examples, 0 failures
Срокът за предаване на решения е отминал
Всеки е играл морски шах.
Нека имаме списъчно представяне на дъска за морски шах, за което е вярно:
nil
за празно поле, или символът :x
за поле, в което има "x", или :o
за поле, в което има o
.От вас ще искаме да напишете код, който да обръща това списъчно представяне на дъската към текстова рисунка. Най-лесно ще е да илюстрираме с пример.
Ако имаме следната дъска:
tic_tac_toe_board = [
nil, nil, :x,
:o, nil, :x,
:o, :x, :o,
]
То ще искаме от вас да дефинирате метода render_tic_tac_toe_board_to_ascii(board)
, който да върне следният текстов низ:
"| | | x |
| o | | x |
| o | x | o |"
Ако изведем на екрана така получения низ, ще видим следната близка до реалността рисунка:
| | | x |
| o | | x |
| o | x | o |
\n
за разделяне на редовете. Можете да го направите, като сложите \n
в низ с двойни кавички: "\n"
.С това предизвикателство ще трябва да упражните обхождане и манипулация на списъци и операции с низове. Нашето решение се побира в 270 символа и е сравнително описателно.
Примерните тестове се намират в GitHub хранилището с домашните. За информация как да ги изпълните, погледнете README-то на хранилището.
.... Finished in 0.00577 seconds 4 examples, 0 failures
.... Finished in 0.00556 seconds 4 examples, 0 failures
.... Finished in 0.00546 seconds 4 examples, 0 failures
.... Finished in 0.00455 seconds 4 examples, 0 failures
.... Finished in 0.00444 seconds 4 examples, 0 failures
.... Finished in 0.0053 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| | | | -| | | | -| | | | +| | | | +| | | | +| | | | # /tmp/d20141018-2426-1ffi78s/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "|x| | |\n|o|x| |\n|x|o|o|" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | | | -| o | x | | -| x | o | o | +|x| | | +|o|x| | +|x|o|o| # /tmp/d20141018-2426-1ffi78s/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "|x|x|x|\n|x|x|x|\n|x|x|x|" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | x | x | -| x | x | x | -| x | x | x | +|x|x|x| +|x|x|x| +|x|x|x| # /tmp/d20141018-2426-1ffi78s/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "|o|o|o|\n|o|o|o|\n|o|o|o|" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| o | o | o | -| o | o | o | -| o | o | o | +|o|o|o| +|o|o|o| +|o|o|o| # /tmp/d20141018-2426-1ffi78s/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00681 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-1ffi78s/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-1ffi78s/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-1ffi78s/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-1ffi78s/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00507 seconds 4 examples, 0 failures
.... Finished in 0.00443 seconds 4 examples, 0 failures
.... Finished in 0.00458 seconds 4 examples, 0 failures
.... Finished in 0.00463 seconds 4 examples, 0 failures
.... Finished in 0.00475 seconds 4 examples, 0 failures
.... Finished in 0.00593 seconds 4 examples, 0 failures
FF.. Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| | | | -| | | | -| | | | +| | | | +| | | | +| | | | # /tmp/d20141018-2426-dnazbd/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "| x | | |\n| o | x | |\n| x | o | o |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | | | -| o | x | | +| x | | | +| o | x | | | x | o | o | # /tmp/d20141018-2426-dnazbd/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00656 seconds 4 examples, 2 failures Failed examples: rspec /tmp/d20141018-2426-dnazbd/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-dnazbd/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers
.... Finished in 0.00458 seconds 4 examples, 0 failures
.... Finished in 0.00456 seconds 4 examples, 0 failures
.... Finished in 0.0045 seconds 4 examples, 0 failures
.... Finished in 0.00555 seconds 4 examples, 0 failures
.... Finished in 0.00466 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |\n" (compared using ==) Diff: # /tmp/d20141018-2426-1mhkrlk/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "| x | | |\n| o | x | |\n| x | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-1mhkrlk/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "| x | x | x |\n| x | x | x |\n| x | x | x |\n" (compared using ==) Diff: # /tmp/d20141018-2426-1mhkrlk/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "| o | o | o |\n| o | o | o |\n| o | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-1mhkrlk/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00555 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-1mhkrlk/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-1mhkrlk/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-1mhkrlk/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-1mhkrlk/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00443 seconds 4 examples, 0 failures
.... Finished in 0.00456 seconds 4 examples, 0 failures
.... Finished in 0.00457 seconds 4 examples, 0 failures
.... Finished in 0.00467 seconds 4 examples, 0 failures
.... Finished in 0.00561 seconds 4 examples, 0 failures
.... Finished in 0.00581 seconds 4 examples, 0 failures
.... Finished in 0.0045 seconds 4 examples, 0 failures
.... Finished in 0.00568 seconds 4 examples, 0 failures
.... Finished in 0.00444 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |\n" (compared using ==) Diff: # /tmp/d20141018-2426-1ke2iuc/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "| x | | |\n| o | x | |\n| x | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-1ke2iuc/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "| x | x | x |\n| x | x | x |\n| x | x | x |\n" (compared using ==) Diff: # /tmp/d20141018-2426-1ke2iuc/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "| o | o | o |\n| o | o | o |\n| o | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-1ke2iuc/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.0055 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-1ke2iuc/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-1ke2iuc/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-1ke2iuc/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-1ke2iuc/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00468 seconds 4 examples, 0 failures
.... Finished in 0.00468 seconds 4 examples, 0 failures
.... Finished in 0.00463 seconds 4 examples, 0 failures
.... Finished in 0.00455 seconds 4 examples, 0 failures
.... Finished in 0.00478 seconds 4 examples, 0 failures
.... Finished in 0.00557 seconds 4 examples, 0 failures
.... Finished in 0.0171 seconds 4 examples, 0 failures
.... Finished in 0.00464 seconds 4 examples, 0 failures
.... Finished in 0.00449 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| | | | -| | | | -| | | | +| | | | +| | | | +| | | | # /tmp/d20141018-2426-l3n03q/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "|x| | |\n|o|x| |\n|x|o|o|\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | | | -| o | x | | -| x | o | o | +|x| | | +|o|x| | +|x|o|o| # /tmp/d20141018-2426-l3n03q/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "|x|x|x|\n|x|x|x|\n|x|x|x|\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | x | x | -| x | x | x | -| x | x | x | +|x|x|x| +|x|x|x| +|x|x|x| # /tmp/d20141018-2426-l3n03q/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "|o|o|o|\n|o|o|o|\n|o|o|o|\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| o | o | o | -| o | o | o | -| o | o | o | +|o|o|o| +|o|o|o| +|o|o|o| # /tmp/d20141018-2426-l3n03q/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.0078 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-l3n03q/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-l3n03q/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-l3n03q/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-l3n03q/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| | | | -| | | | -| | | | +| | | | +| | | | +| | | | # /tmp/d20141018-2426-15juotz/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "|x| | |\n|o|x| |\n|x|o|o|\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | | | -| o | x | | -| x | o | o | +|x| | | +|o|x| | +|x|o|o| # /tmp/d20141018-2426-15juotz/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "|x|x|x|\n|x|x|x|\n|x|x|x|\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | x | x | -| x | x | x | -| x | x | x | +|x|x|x| +|x|x|x| +|x|x|x| # /tmp/d20141018-2426-15juotz/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "|o|o|o|\n|o|o|o|\n|o|o|o|\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| o | o | o | -| o | o | o | -| o | o | o | +|o|o|o| +|o|o|o| +|o|o|o| # /tmp/d20141018-2426-15juotz/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00781 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-15juotz/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-15juotz/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-15juotz/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-15juotz/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00465 seconds 4 examples, 0 failures
.... Finished in 0.00445 seconds 4 examples, 0 failures
.... Finished in 0.00454 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |\n" (compared using ==) Diff: # /tmp/d20141018-2426-1nn4fao/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "| | |\n| |\n|\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | | | -| o | x | | -| x | o | o | +| | | +| | +| # /tmp/d20141018-2426-1nn4fao/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "|\n|\n|\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | x | x | -| x | x | x | -| x | x | x | +| +| +| # /tmp/d20141018-2426-1nn4fao/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "|\n|\n|\n" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| o | o | o | -| o | o | o | -| o | o | o | +| +| +| # /tmp/d20141018-2426-1nn4fao/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00768 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-1nn4fao/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-1nn4fao/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-1nn4fao/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-1nn4fao/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| | | | -| | | | -| | | | +| | | | +| | | | +| | | | # /tmp/d20141018-2426-1a6l0sy/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "|x| | |\n|o|x| |\n|x|o|o|" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | | | -| o | x | | -| x | o | o | +|x| | | +|o|x| | +|x|o|o| # /tmp/d20141018-2426-1a6l0sy/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "|x|x|x|\n|x|x|x|\n|x|x|x|" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | x | x | -| x | x | x | -| x | x | x | +|x|x|x| +|x|x|x| +|x|x|x| # /tmp/d20141018-2426-1a6l0sy/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "|o|o|o|\n|o|o|o|\n|o|o|o|" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| o | o | o | -| o | o | o | -| o | o | o | +|o|o|o| +|o|o|o| +|o|o|o| # /tmp/d20141018-2426-1a6l0sy/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00685 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-1a6l0sy/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-1a6l0sy/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-1a6l0sy/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-1a6l0sy/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00472 seconds 4 examples, 0 failures
.... Finished in 0.00451 seconds 4 examples, 0 failures
.... Finished in 0.00451 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |\n" (compared using ==) Diff: # /tmp/d20141018-2426-ve8ksa/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "| x | | |\n| o | x | |\n| x | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-ve8ksa/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "| x | x | x |\n| x | x | x |\n| x | x | x |\n" (compared using ==) Diff: # /tmp/d20141018-2426-ve8ksa/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "| o | o | o |\n| o | o | o |\n| o | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-ve8ksa/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00558 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-ve8ksa/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-ve8ksa/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-ve8ksa/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-ve8ksa/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: [nil, nil, nil] (compared using ==) Diff: @@ -1,4 +1,2 @@ -| | | | -| | | | -| | | | +[nil, nil, nil] # /tmp/d20141018-2426-oyq9xc/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: [:x, :o, :o] (compared using ==) Diff: @@ -1,4 +1,2 @@ -| x | | | -| o | x | | -| x | o | o | +[:x, :o, :o] # /tmp/d20141018-2426-oyq9xc/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: [:x, :x, :x] (compared using ==) Diff: @@ -1,4 +1,2 @@ -| x | x | x | -| x | x | x | -| x | x | x | +[:x, :x, :x] # /tmp/d20141018-2426-oyq9xc/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: [:o, :o, :o] (compared using ==) Diff: @@ -1,4 +1,2 @@ -| o | o | o | -| o | o | o | -| o | o | o | +[:o, :o, :o] # /tmp/d20141018-2426-oyq9xc/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00809 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-oyq9xc/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-oyq9xc/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-oyq9xc/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-oyq9xc/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00463 seconds 4 examples, 0 failures
.... Finished in 0.0046 seconds 4 examples, 0 failures
.... Finished in 0.00464 seconds 4 examples, 0 failures
.... Finished in 0.00488 seconds 4 examples, 0 failures
.... Finished in 0.00517 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |\n" (compared using ==) Diff: # /tmp/d20141018-2426-10lpeim/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "| x | | |\n| o | x | |\n| x | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-10lpeim/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "| x | x | x |\n| x | x | x |\n| x | x | x |\n" (compared using ==) Diff: # /tmp/d20141018-2426-10lpeim/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "| o | o | o |\n| o | o | o |\n| o | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-10lpeim/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00601 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-10lpeim/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-10lpeim/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-10lpeim/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-10lpeim/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00453 seconds 4 examples, 0 failures
.... Finished in 0.0047 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ NoMethodError: undefined method `render_tic_tac_toe_board_to_ascii' for #<RSpec::Core::ExampleGroup::Nested_1:0xb87184d8> # /tmp/d20141018-2426-1kjyzkq/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ NoMethodError: undefined method `render_tic_tac_toe_board_to_ascii' for #<RSpec::Core::ExampleGroup::Nested_1:0xb8712ce0> # /tmp/d20141018-2426-1kjyzkq/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ NoMethodError: undefined method `render_tic_tac_toe_board_to_ascii' for #<RSpec::Core::ExampleGroup::Nested_1:0xb8710724> # /tmp/d20141018-2426-1kjyzkq/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ NoMethodError: undefined method `render_tic_tac_toe_board_to_ascii' for #<RSpec::Core::ExampleGroup::Nested_1:0xb870c778> # /tmp/d20141018-2426-1kjyzkq/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00344 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-1kjyzkq/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-1kjyzkq/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-1kjyzkq/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-1kjyzkq/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00491 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| || || |\n| || || |\n| || || |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| | | | -| | | | -| | | | +| || || | +| || || | +| || || | # /tmp/d20141018-2426-1jcv080/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "| x || || |\n| o || x || |\n| x || o || o |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | | | -| o | x | | -| x | o | o | +| x || || | +| o || x || | +| x || o || o | # /tmp/d20141018-2426-1jcv080/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "| x || x || x |\n| x || x || x |\n| x || x || x |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | x | x | -| x | x | x | -| x | x | x | +| x || x || x | +| x || x || x | +| x || x || x | # /tmp/d20141018-2426-1jcv080/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "| o || o || o |\n| o || o || o |\n| o || o || o |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| o | o | o | -| o | o | o | -| o | o | o | +| o || o || o | +| o || o || o | +| o || o || o | # /tmp/d20141018-2426-1jcv080/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00801 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-1jcv080/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-1jcv080/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-1jcv080/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-1jcv080/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| || || |\n| || || |\n| || || |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| | | | -| | | | -| | | | +| || || | +| || || | +| || || | # /tmp/d20141018-2426-16tcdg7/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "| x || || |\n| o || x || |\n| x || o || o |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | | | -| o | x | | -| x | o | o | +| x || || | +| o || x || | +| x || o || o | # /tmp/d20141018-2426-16tcdg7/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "| x || x || x |\n| x || x || x |\n| x || x || x |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| x | x | x | -| x | x | x | -| x | x | x | +| x || x || x | +| x || x || x | +| x || x || x | # /tmp/d20141018-2426-16tcdg7/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "| o || o || o |\n| o || o || o |\n| o || o || o |" (compared using ==) Diff: @@ -1,4 +1,4 @@ -| o | o | o | -| o | o | o | -| o | o | o | +| o || o || o | +| o || o || o | +| o || o || o | # /tmp/d20141018-2426-16tcdg7/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00664 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-16tcdg7/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-16tcdg7/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-16tcdg7/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-16tcdg7/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00566 seconds 4 examples, 0 failures
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: nil (compared using ==) # /tmp/d20141018-2426-gfii6v/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: nil (compared using ==) # /tmp/d20141018-2426-gfii6v/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: nil (compared using ==) # /tmp/d20141018-2426-gfii6v/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: nil (compared using ==) # /tmp/d20141018-2426-gfii6v/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00485 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-gfii6v/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-gfii6v/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-gfii6v/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-gfii6v/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
FFFF Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: "| | | |\n| | | |\n| | | |\n" (compared using ==) Diff: # /tmp/d20141018-2426-e70c5d/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: "| x | | |\n| o | x | |\n| x | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-e70c5d/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: "| x | x | x |\n| x | x | x |\n| x | x | x |\n" (compared using ==) Diff: # /tmp/d20141018-2426-e70c5d/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: "| o | o | o |\n| o | o | o |\n| o | o | o |\n" (compared using ==) Diff: # /tmp/d20141018-2426-e70c5d/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00578 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-e70c5d/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-e70c5d/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-e70c5d/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-e70c5d/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
| | | | | | | | | | | | F| | | | | | | | | | | | F| | | | | | | | | | | | F| | | | | | | | | | | | F Failures: 1) tic_tac_toe_board_from renders a blank board for an array with nils Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| | | |\n| | | |\n| | | |" got: nil (compared using ==) # /tmp/d20141018-2426-ttaln5/spec.rb:3:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 2) tic_tac_toe_board_from renders boards with x and o markers Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | | |\n| o | x | |\n| x | o | o |" got: nil (compared using ==) # /tmp/d20141018-2426-ttaln5/spec.rb:15:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 3) tic_tac_toe_board_from renders boards with all x-es Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| x | x | x |\n| x | x | x |\n| x | x | x |" got: nil (compared using ==) # /tmp/d20141018-2426-ttaln5/spec.rb:27:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' 4) tic_tac_toe_board_from renders boards with all o-s Failure/Error: expect(render_tic_tac_toe_board_to_ascii([ expected: "| o | o | o |\n| o | o | o |\n| o | o | o |" got: nil (compared using ==) # /tmp/d20141018-2426-ttaln5/spec.rb:39:in `block (2 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>' # ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>' Finished in 0.00554 seconds 4 examples, 4 failures Failed examples: rspec /tmp/d20141018-2426-ttaln5/spec.rb:2 # tic_tac_toe_board_from renders a blank board for an array with nils rspec /tmp/d20141018-2426-ttaln5/spec.rb:14 # tic_tac_toe_board_from renders boards with x and o markers rspec /tmp/d20141018-2426-ttaln5/spec.rb:26 # tic_tac_toe_board_from renders boards with all x-es rspec /tmp/d20141018-2426-ttaln5/spec.rb:38 # tic_tac_toe_board_from renders boards with all o-s
.... Finished in 0.00553 seconds 4 examples, 0 failures