From 32b24a3a2091382079cd6b991f0ce0a490b071c7 Mon Sep 17 00:00:00 2001 From: Kris Koishigawa Date: Wed, 22 May 2019 22:52:33 +0900 Subject: [PATCH] Fixing merge conflicts --- .../rosetta-code/towers-of-hanoi.english.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/towers-of-hanoi.english.md b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/towers-of-hanoi.english.md index 49dd252b9b..fe5fbddfeb 100644 --- a/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/towers-of-hanoi.english.md +++ b/curriculum/challenges/english/08-coding-interview-prep/rosetta-code/towers-of-hanoi.english.md @@ -26,12 +26,12 @@ tests: testString: assert(typeof towerOfHanoi === 'function', 'towerOfHanoi is a function.'); - text: towerOfHanoi(3, ...) should return 7 moves. testString: assert(res3.length === 7, 'towerOfHanoi(3, ...) should return 7 moves.'); - - text: towerOfHanoi(3, 'A', 'B', 'C') should return [['A','B'], ['A','C'], ['B','C'], ['A','B'], ['C','A'], ['C','B'], ['A','B']].) - testString: assert.deepEqual(towerOfHanoi(3, 'A', 'B', 'C'), res3Moves, "towerOfHanoi(3, 'A', 'B', 'C') should return [['A','B'], ['A','C'], ['B','C'], ['A','B'], ['C','A'], ['C','B'], ['A','B']]."); + - text: towerOfHanoi(3, 'A', 'B', 'C') should return [['A','B'], ['A','C'], ['B','C'], ['A','B'], ['C','A'], ['C','B'], ['A','B']]. + testString: assert.deepEqual(towerOfHanoi(3, 'A', 'B', 'C'), res3Moves, "towerOfHanoi(3, 'A', 'B', 'C') should return [['A','B'], ['A','C'], ['B','C'], ['A','B'], ['C','A'], ['C','B'], ['A','B']]."); - text: towerOfHanoi(5, "X", "Y", "Z") 10th move should be Y -> X. testString: assert.deepEqual(res5[9], ['Y', 'X'], 'towerOfHanoi(5, "X", "Y", "Z") 10th move should be Y -> X.'); - - text: towerOfHanoi(7, 'A', 'B', 'C') first ten moves are [['A','B'], ['A','C'], ['B','C'], ['A','B'], ['C','A'], ['C','B'], ['A','B'], ['A','C'], ['B','C'], ['B','A']].) - testString: assert.deepEqual(towerOfHanoi(7, 'A', 'B', 'C').slice(0, 10), res7First10Moves, "towerOfHanoi(7, 'A', 'B', 'C') first ten moves are [['A','B'], ['A','C'], ['B','C'], ['A','B'], ['C','A'], ['C','B'], ['A','B'], ['A','C'], ['B','C'], ['B','A']]."); + - text: towerOfHanoi(7, 'A', 'B', 'C') first ten moves are [['A','B'], ['A','C'], ['B','C'], ['A','B'], ['C','A'], ['C','B'], ['A','B'], ['A','C'], ['B','C'], ['B','A']] + testString: assert.deepEqual(towerOfHanoi(7, 'A', 'B', 'C').slice(0, 10), res7First10Moves, "towerOfHanoi(7, 'A', 'B', 'C') first ten moves are [['A','B'], ['A','C'], ['B','C'], ['A','B'], ['C','A'], ['C','B'], ['A','B'], ['A','C'], ['B','C'], ['B','A']]."); ```