]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/test/string/#/pad.js
28c3fcaa10c4da79e0f3149902ec460207c21e6a
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / node_modules / es5-ext / test / string / # / pad.js
1 'use strict';
2
3 var partial = require('../../../function/#/partial');
4
5 module.exports = {
6 Left: function (t, a) {
7 t = partial.call(t, 'x', 5);
8
9 a(t.call('yy'), 'xxxyy');
10 a(t.call(''), 'xxxxx', "Empty string");
11
12 a(t.call('yyyyy'), 'yyyyy', 'Equal length');
13 a(t.call('yyyyyyy'), 'yyyyyyy', 'Longer');
14 },
15 Right: function (t, a) {
16 t = partial.call(t, 'x', -5);
17
18 a(t.call('yy'), 'yyxxx');
19 a(t.call(''), 'xxxxx', "Empty string");
20
21 a(t.call('yyyyy'), 'yyyyy', 'Equal length');
22 a(t.call('yyyyyyy'), 'yyyyyyy', 'Longer');
23 }
24 };