Files
Surge_by_SukkaW/Build/lib/process-line.test.ts
2026-02-26 01:26:39 +08:00

23 lines
528 B
TypeScript

import { describe, it } from 'mocha';
import { processLine } from './process-line';
import { expect } from 'earl';
describe('processLine', () => {
([
['! comment', null],
[' ! comment', null],
['// xommwnr', null],
['# comment', null],
[' # comment', null],
['###id', '###id'],
['##.class', '##.class'],
['## EOF', '## EOF'],
['##### EOF', null]
] as const).forEach(([input, expected]) => {
it(input, () => {
expect(processLine(input)).toEqual(expected);
});
});
});