]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/test/string/#/pad.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / 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 };