This commit is contained in:
hatuhn
2019-09-13 09:45:04 +07:00
parent f14a34ba19
commit 558fb07261
16790 changed files with 0 additions and 1642370 deletions

View File

@@ -1,15 +0,0 @@
/* eslint-env node */
"use strict";
var indexTest = require("tad/lib/utils/index-test")
, path = require("path").resolve(__dirname, "../../../reg-exp/#");
module.exports = function (t, a, d) {
indexTest(
indexTest.readDir(path).aside(function (data) {
delete data.sticky;
delete data.unicode;
})
)(t, a, d);
};

View File

@@ -1,13 +0,0 @@
"use strict";
module.exports = function (t, a) {
var re;
a(t.call(/raz/), false, "Normal");
a(t.call(/raz/g), false, "Global");
try {
// eslint-disable-next-line no-invalid-regexp
re = new RegExp("raz", "y");
} catch (ignore) {}
if (!re) return;
a(t.call(re), true, "Sticky");
};

View File

@@ -1,13 +0,0 @@
"use strict";
module.exports = function (t, a) {
var re;
a(t.call(/raz/), false, "Normal");
a(t.call(/raz/g), false, "Global");
try {
// eslint-disable-next-line no-invalid-regexp
re = new RegExp("raz", "u");
} catch (ignore) {}
if (!re) return;
a(t.call(re), true, "Unicode");
};

View File

@@ -1,5 +0,0 @@
"use strict";
var isImplemented = require("../../../../reg-exp/#/match/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = require("./shim");

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a(typeof t(), "boolean"); };

View File

@@ -1,6 +0,0 @@
"use strict";
module.exports = function (t, a) {
var result = "foobar".match(/foo/);
a.deep(t.call(/foo/, "foobar"), result);
};

View File

@@ -1,5 +0,0 @@
"use strict";
var isImplemented = require("../../../../reg-exp/#/replace/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = require("./shim");

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a(typeof t(), "boolean"); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a(t.call(/foo/, "foobar", "mar"), "marbar"); };

View File

@@ -1,5 +0,0 @@
"use strict";
var isImplemented = require("../../../../reg-exp/#/search/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = require("./shim");

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a(typeof t(), "boolean"); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a(t.call(/foo/, "barfoo"), 3); };

View File

@@ -1,5 +0,0 @@
"use strict";
var isImplemented = require("../../../../reg-exp/#/split/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = require("./shim");

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a(typeof t(), "boolean"); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a.deep(t.call(/\|/, "bar|foo"), ["bar", "foo"]); };

View File

@@ -1,5 +0,0 @@
"use strict";
var isImplemented = require("../../../../reg-exp/#/sticky/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a(typeof t(), "boolean"); };

View File

@@ -1,5 +0,0 @@
"use strict";
var isImplemented = require("../../../../reg-exp/#/unicode/is-implemented");
module.exports = function (a) { a(isImplemented(), true); };

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = function (t, a) { a(typeof t(), "boolean"); };

View File

@@ -1,6 +0,0 @@
"use strict";
module.exports = function (t, a) {
var str = "(?:^te|er)s{2}t\\[raz]+$";
a(RegExp("^" + t(str) + "$").test(str), true);
};

View File

@@ -1,12 +0,0 @@
"use strict";
module.exports = function (t, a) {
a(t("arar"), false, "String");
a(t(12), false, "Number");
a(t(true), false, "Boolean");
a(t(new Date()), false, "Date");
a(t(new String("raz")), false, "String object");
a(t({}), false, "Plain object");
a(t(/a/), true, "Regular expression");
a(t(new RegExp("a")), true, "Regular expression via constructor");
};

View File

@@ -1,15 +0,0 @@
"use strict";
module.exports = function (t, a) {
var r = /raz/;
a(t(r), r, "Direct");
r = new RegExp("foo");
a(t(r), r, "Constructor");
a.throws(function () { t({}); }, "Object");
a.throws(function () {
t(function () {});
}, "Function");
a.throws(function () {
t({ exec: function () { return 20; } });
}, "Plain object");
};