]> 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/#/ends-with/shim.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 / # / ends-with / shim.js
1 // In some parts copied from:
2 // http://closure-library.googlecode.com/svn/trunk/closure/goog/
3 // string/string_test.html
4
5 'use strict';
6
7 module.exports = function (t, a) {
8         a(t.call('abc', ''), true, "Empty needle");
9         a(t.call('abcd', 'cd'), true, "Ends with needle");
10         a(t.call('abcd', 'abcd'), true, "Needle equals haystack");
11         a(t.call('abcd', 'ab'), false, "Doesn't end with needle");
12         a(t.call('abc', 'defg'), false, "Length trick");
13         a(t.call('razdwa', 'zd', 3), false, "Position: false");
14         a(t.call('razdwa', 'zd', 4), true, "Position: true");
15         a(t.call('razdwa', 'zd', 5), false, "Position: false #2");
16 };