UNPKG

functionfoundry

Version:
13 lines (11 loc) 351 B
import columnnumber from '../src/columnnumber'; import error from '../src/error'; import test from 'tape'; test('columnnumber', function(t) { t.plan(5); t.equal( columnnumber('A'), 0 ); t.equal( columnnumber('Z'), 25 ); t.equal( columnnumber('AA'), 26 ); t.equal( columnnumber('AAA'), 702 ); t.equal( columnnumber(NaN), error.value ); })