]> git.r.bdr.sh - rbdr/dotfiles/blob
cb9424109c334b27be6560056b5705deaaf895ca
[rbdr/dotfiles] /
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 };