diff.js 454 B

1234567891011121314151617
  1. 'use strict';
  2. module.exports = {
  3. __generic: function (t, a) {
  4. a.deep(t.call(this, this), []);
  5. },
  6. "": function (t, a) {
  7. var x = {}, y = {};
  8. a.deep(t.call([1, 'raz', x, 2, 'trzy', y], [x, 2, 'trzy']), [1, 'raz', y],
  9. "Scope longer");
  10. a.deep(t.call([1, 'raz', x], [x, 2, 'trzy', 1, y]), ['raz'],
  11. "Arg longer");
  12. a.deep(t.call([1, 'raz', x], []), [1, 'raz', x], "Empty arg");
  13. a.deep(t.call([], [1, y, 'sdfs']), [], "Empty scope");
  14. }
  15. };