0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.135.214.226


Current Path : /proc/self/root/usr/lib/nodejs/npm/node_modules/text-table/test/
Upload File :
Current File : //proc/self/root/usr/lib/nodejs/npm/node_modules/text-table/test/doubledot.js

var test = require('tape');
var table = require('../');

test('dot align', function (t) {
    t.plan(1);
    var s = table([
        [ '0.1.2' ],
        [ '11.22.33' ],
        [ '5.6.7' ],
        [ '1.22222' ],
        [ '12345.' ],
        [ '5555.' ],
        [ '123' ]
    ], { align: [ '.' ] });
    t.equal(s, [
        '  0.1.2',
        '11.22.33',
        '  5.6.7',
        '    1.22222',
        '12345.',
        ' 5555.',
        '  123'
    ].join('\n'));
});