]> 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/object/compare.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 / object / compare.js
1 'use strict';
2
3 module.exports = function (t, a) {
4         var d = new Date();
5
6         a.ok(t(12, 3) > 0, "Numbers");
7         a.ok(t(2, 13) < 0, "Numbers #2");
8         a.ok(t("aaa", "aa") > 0, "Strings");
9         a.ok(t("aa", "ab") < 0, "Strings #2");
10         a(t("aa", "aa"), 0, "Strings same");
11         a(t(d, new Date(d.getTime())), 0, "Same date");
12         a.ok(t(d, new Date(d.getTime() + 1)) < 0, "Different date");
13 };