11cb0ef41Sopenharmony_civar test = require('tape');
21cb0ef41Sopenharmony_civar table = require('../');
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_citest('center', function (t) {
51cb0ef41Sopenharmony_ci    t.plan(1);
61cb0ef41Sopenharmony_ci    var s = table([
71cb0ef41Sopenharmony_ci        [ 'beep', '1024', 'xyz' ],
81cb0ef41Sopenharmony_ci        [ 'boop', '3388450', 'tuv' ],
91cb0ef41Sopenharmony_ci        [ 'foo', '10106', 'qrstuv' ],
101cb0ef41Sopenharmony_ci        [ 'bar', '45', 'lmno' ]
111cb0ef41Sopenharmony_ci    ], { align: [ 'l', 'c', 'l' ] });
121cb0ef41Sopenharmony_ci    t.equal(s, [
131cb0ef41Sopenharmony_ci        'beep    1024   xyz',
141cb0ef41Sopenharmony_ci        'boop  3388450  tuv',
151cb0ef41Sopenharmony_ci        'foo    10106   qrstuv',
161cb0ef41Sopenharmony_ci        'bar      45    lmno'
171cb0ef41Sopenharmony_ci    ].join('\n'));
181cb0ef41Sopenharmony_ci});
19