Blame view

node_modules/es5-ext/test/array/#/diff.js 456 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  "use strict";
  
  module.exports = {
  	"__generic": function (t, a) {
  		a.deep(t.call(this, this), []);
  	},
  	"": function (t, a) {
  		var x = {}, y = {};
  
  		a.deep(t.call([1, "raz", x, 2, "trzy", y], [x, 2, "trzy"]), [1, "raz", y],
  			"Scope longer");
  		a.deep(t.call([1, "raz", x], [x, 2, "trzy", 1, y]), ["raz"],
  			"Arg longer");
  		a.deep(t.call([1, "raz", x], []), [1, "raz", x], "Empty arg");
  		a.deep(t.call([], [1, y, "sdfs"]), [], "Empty scope");
  	}
  };