added whole system from ola4doc

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-14 17:06:06 +01:00
parent 9646c74be1
commit 0611418f7a
8725 changed files with 817688 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
'use strict';
module.exports = function (t, a) {
var fn = function (raz, dwa) { return raz + dwa; };
a(t(), 'undefined', "Undefined");
a(t(null), 'null', "Null");
a(t(null), 'null', "Null");
a(t('raz'), '"raz"', "String");
a(t('raz"ddwa\ntrzy'), '"raz\\"ddwa\\ntrzy"', "String with escape");
a(t(false), 'false', "Booelean");
a(t(fn), String(fn), "Function");
a(t(/raz-dwa/g), '/raz-dwa/g', "RegExp");
a(t(new Date(1234567)), 'new Date(1234567)', "Date");
a(t([]), '[]', "Empty array");
a(t([undefined, false, null, 'raz"ddwa\ntrzy', fn, /raz/g, new Date(1234567), ['foo']]),
'[undefined,false,null,"raz\\"ddwa\\ntrzy",' + String(fn) +
',/raz/g,new Date(1234567),["foo"]]', "Rich Array");
a(t({}), '{}', "Empty object");
a(t({ raz: undefined, dwa: false, trzy: null, cztery: 'raz"ddwa\ntrzy', piec: fn, szesc: /raz/g,
siedem: new Date(1234567), osiem: ['foo', 32], dziewiec: { foo: 'bar', dwa: 343 } }),
'{"raz":undefined,"dwa":false,"trzy":null,"cztery":"raz\\"ddwa\\ntrzy","piec":' + String(fn) +
',"szesc":/raz/g,"siedem":new Date(1234567),"osiem":["foo",32],' +
'"dziewiec":{"foo":"bar","dwa":343}}', "Rich object");
};