towerOfHanoi
is a function.");'
- text: ''
testString: 'assert(res3.length === 7, "towerOfHanoi(3, ...)
should return 7 moves.");'
- text: ''
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: ''
testString: 'assert.deepEqual(res5[9], ["Y", "X"], "towerOfHanoi(5, "X", "Y", "Z")
10th move should be Y -> X.");'
- text: ''
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"]].");'
```