Skip to content
Snippets Groups Projects
Select Git revision
  • main
  • v3.1.0
  • v3.0.2
  • v3.0.1
4 results

dictionary-parser.test.mjs

Blame
  • Forked from libs / G1lib.js
    32 commits behind the upstream repository.
    dictionary-parser.test.mjs 440 B
    import test from 'ava';
    import * as app from './dictionary-parser.mjs';
    
    test('no @@@@ idSec password separator ? implicit add it', t => {
    	t.is(app.parse('a'), 'a@@@@a');
    });
    test('@@@@ present, do not add it', t => {
    	t.is(app.parse('a@@@@b'), 'a@@@@b');
    });
    test('no @@@@ on each line ? combine no @@@@ lines', t => {
    	t.is(app.parse(`
    a@@@@(b|c)
    (d|e)
    (f|g)
    h@@@@(i|j)
    `), '(a@@@@(b|c)|h@@@@(i|j)|((d|e)|(f|g))@@@@((d|e)|(f|g)))');
    });