fractran
should be a function.
testString: assert(typeof fractran=='function','fractran
should be a function.');
- text: fractran("3/2, 1/3")
should return an array.
testString: assert(Array.isArray(fractran('3/2, 1/3')),'fractran("3/2, 1/3")
should return an array.');
- text: fractran("3/2, 1/3")
should return [ 2, 3, 1 ]
.
testString: assert.deepEqual(fractran('3/2, 1/3'), [ 2, 3, 1 ],'fractran("3/2, 1/3")
should return [ 2, 3, 1 ]
.');
- text: fractran("3/2, 5/3, 1/5")
should return [ 2, 3, 5, 1 ]
.
testString: assert.deepEqual(fractran('3/2, 5/3, 1/5'), [ 2, 3, 5, 1 ],'fractran("3/2, 5/3, 1/5")
should return [ 2, 3, 5, 1 ]
.');
- text: fractran("3/2, 6/3")
should return [ 2, 3, 6, 9, 18, 27, 54, 81, 162, 243 ]
.
testString: assert.deepEqual(fractran('3/2, 6/3'), [ 2, 3, 6, 9, 18, 27, 54, 81, 162, 243 ],'fractran("3/2, 6/3")
should return [ 2, 3, 6, 9, 18, 27, 54, 81, 162, 243 ]
.');
- text: fractran("2/7, 7/2")
should return [ 2, 7, 2, 7, 2, 7, 2, 7, 2, 7 ]
.
testString: assert.deepEqual(fractran('2/7, 7/2'), [ 2, 7, 2, 7, 2, 7, 2, 7, 2, 7 ],'fractran("2/7, 7/2")
should return [ 2, 7, 2, 7, 2, 7, 2, 7, 2, 7 ]
.');
- text: fractran("17/91, 78/85, 19/51, 23/38, 29/33, 77/29, 95/23, 77/19, 1/17, 11/13, 13/11, 15/14, 15/2, 55/1")
should return [ 2, 15, 825, 725, 1925, 2275, 425, 390, 330, 290 ]
.
testString: assert.deepEqual(fractran('17/91, 78/85, 19/51, 23/38, 29/33, 77/29, 95/23, 77/19, 1/17, 11/13, 13/11, 15/14, 15/2, 55/1'), [ 2, 15, 825, 725, 1925, 2275, 425, 390, 330, 290 ],'fractran("17/91, 78/85, 19/51, 23/38, 29/33, 77/29, 95/23, 77/19, 1/17, 11/13, 13/11, 15/14, 15/2, 55/1")
should return [ 2, 15, 825, 725, 1925, 2275, 425, 390, 330, 290 ]
.');
```