Skip to content

Commit

Permalink
Need to isolate tests in this new environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
larspetrus committed Oct 21, 2016
1 parent 11dbb32 commit 24f57eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions test/Alg_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe "Alg", ->
expect(Alg.side_drift("F")).to.deep.equal(U: 'U', D: 'D', L: 'L', R: 'R', F: 'F', B: 'B')
expect(Alg.side_drift("M")).to.deep.equal(U: 'B', D: 'F', L: 'L', R: 'R', F: 'U', B: 'D')

move_should_be = (move, layer, turns, is_rotation = false) ->
expect(move.layer, move.to_s()).to.equal(layer)
expect(move.turns, move.to_s()).to.equal(turns)
expect(move.is_rotation, move.to_s()).to.equal(is_rotation)
move_should_be = (move, layer, turns, is_rotation = false) ->
expect(move.layer, move.to_s()).to.equal(layer)
expect(move.turns, move.to_s()).to.equal(turns)
expect(move.is_rotation, move.to_s()).to.equal(is_rotation)
10 changes: 5 additions & 5 deletions test/Move_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ describe "Move", ->
expect(new Move("U>>").count(false)).to.equal(0)
expect(new Move("U>>").count(true)).to.equal(1)

move_should_be = (move, layer, turns, is_rotation, turn_time) ->
expect(move.layer, move.to_s()).to.equal(layer)
expect(move.turns, move.to_s()).to.equal(turns)
expect(move.is_rotation, move.to_s()).to.equal(is_rotation)
expect(move.turn_time, move.to_s()).to.equal(turn_time)
move_should_be = (move, layer, turns, is_rotation, turn_time) ->
expect(move.layer, move.to_s()).to.equal(layer)
expect(move.turns, move.to_s()).to.equal(turns)
expect(move.is_rotation, move.to_s()).to.equal(is_rotation)
expect(move.turn_time, move.to_s()).to.equal(turn_time)

0 comments on commit 24f57eb

Please sign in to comment.