@borgar/fx
Version:
Utilities for working with Excel formulas
12 lines (10 loc) • 313 B
text/typescript
import { describe, it, expect } from 'vitest';
import { toCol } from './toCol.ts';
describe('toCol', () => {
it('toCol converts integers to column ids', () => {
expect(toCol(0)).toBe('A');
expect(toCol(26)).toBe('AA');
expect(toCol(701)).toBe('ZZ');
expect(toCol(18277)).toBe('ZZZ');
});
});