Skip to content

Commit

Permalink
First mistake: strings are wrapped in double quotes
Browse files Browse the repository at this point in the history
```bash
crystal spec
Error in line 1: while requiring "./spec/conway_game_of_life_spec.cr"

Syntax error in ./spec/conway_game_of_life_spec.cr:5: unterminated char literal, use double quotes for strings

    context 'cell with no live neighbours' do
```
  • Loading branch information
andersondias committed Jun 14, 2017
1 parent 957d620 commit 6c7687b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/conway_game_of_life_spec.cr
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
require "./spec_helper"

describe ConwayGameOfLife do
# TODO: Write tests

it "works" do
false.should eq(true)
context "respects first law: any live cell with fewer than two live neighbours dies, as if caused by under-population" do
context 'cell with no live neighbours' do
it 'should be dead' do
expect(cell).to be_dead
end
end
end
end

0 comments on commit 6c7687b

Please sign in to comment.