Code coverage report for fontkit/playground/testreorder.coffee

Statements: 100% (0 / 0)      Branches: 100% (0 / 0)      Functions: 100% (0 / 0)      Lines: 100% (0 / 0)      Ignored: none     

All files » fontkit/playground/ » testreorder.coffee
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48                                                                                               
# testReorder = (str, verb, firstGlyph, lastGlyph) ->
#   reorderGlyphs(str.split(''), verb, firstGlyph, lastGlyph).join('')
#
# assert = require 'assert'
# assert.equal testReorder('Ax', 1, 0, 1), 'xA'
# assert.equal testReorder('zzzzAxxxxaaaa', 1, 4, 8), 'zzzzxxxxAaaaa'
#
# assert.equal testReorder('xD', 2, 0, 1), 'Dx'
# assert.equal testReorder('aaaaxxxxDyyyy', 2, 4, 8), 'aaaaDxxxxyyyy'
#
# assert.equal testReorder('AxD', 3, 0, 2), 'DxA'
# assert.equal testReorder('aaaaAxxxxDbbbb', 3, 4, 9), 'aaaaDxxxxAbbbb'
#
# assert.equal testReorder('ABx', 4, 0, 2), 'xAB'
# assert.equal testReorder('aaaaABxxxxbbbb', 4, 4, 9), 'aaaaxxxxABbbbb'
#
# assert.equal testReorder('ABx', 5, 0, 2), 'xBA'
# assert.equal testReorder('aaaaABxxxxbbbb', 5, 4, 9), 'aaaaxxxxBAbbbb'
#
# assert.equal testReorder('xCD', 6, 0, 2), 'CDx'
# assert.equal testReorder('aaaaxxxxCDbbbb', 6, 4, 9), 'aaaaCDxxxxbbbb'
#
# assert.equal testReorder('xCD', 7, 0, 2), 'DCx'
# assert.equal testReorder('aaaaxxxxCDbbbb', 7, 4, 9), 'aaaaDCxxxxbbbb'
#
# assert.equal testReorder('AxCD', 8, 0, 3), 'CDxA'
# assert.equal testReorder('aaaaAxxxxCDbbbb', 8, 4, 10), 'aaaaCDxxxxAbbbb'
#
# assert.equal testReorder('AxCD', 9, 0, 3), 'DCxA'
# assert.equal testReorder('aaaaAxxxxCDbbbb', 9, 4, 10), 'aaaaDCxxxxAbbbb'
#
# assert.equal testReorder('ABxD', 10, 0, 3), 'DxAB'
# assert.equal testReorder('aaaaABxxxxDbbbb', 10, 4, 10), 'aaaaDxxxxABbbbb'
#
# assert.equal testReorder('ABxD', 11, 0, 3), 'DxBA'
# assert.equal testReorder('aaaaABxxxxDbbbb', 11, 4, 10), 'aaaaDxxxxBAbbbb'
#
# assert.equal testReorder('ABxCD', 12, 0, 4), 'CDxAB'
# assert.equal testReorder('aaaaABxxxxCDbbbb', 12, 4, 11), 'aaaaCDxxxxABbbbb'
#
# assert.equal testReorder('ABxCD', 13, 0, 4), 'CDxBA'
# assert.equal testReorder('aaaaABxxxxCDbbbb', 13, 4, 11), 'aaaaCDxxxxBAbbbb'
#
# assert.equal testReorder('ABxCD', 14, 0, 4), 'DCxAB'
# assert.equal testReorder('aaaaABxxxxCDbbbb', 14, 4, 11), 'aaaaDCxxxxABbbbb'
# assert.equal testReorder('ABxCD', 15, 0, 4), 'DCxBA'
# assert.equal testReorder('aaaaABxxxxCDbbbb', 15, 4, 11), 'aaaaDCxxxxBAbbbb'