hofstadterQ
is a function.");'
- text: ''
testString: 'assert(Number.isInteger(hofstadterQ(1000)), "hofstadterQ()
should return integer
");'
- text: ''
testString: 'assert.equal(hofstadterQ(testCase[0]), res[0], "hofstadterQ(1000)
should return 502
");'
- text: ''
testString: 'assert.equal(hofstadterQ(testCase[1]), res[1], "hofstadterQ(1500)
should return 755
");'
- text: ''
testString: 'assert.equal(hofstadterQ(testCase[2]), res[2], "hofstadterQ(2000)
should return 1005
");'
- text: ''
testString: 'assert.equal(hofstadterQ(testCase[3]), res[3], "hofstadterQ(2500)
should return 1261
");'
```