项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

14 lines
468 B

  1. "use strict";
  2. module.exports = function (t, a) {
  3. var x = {};
  4. a(t.call([], []), true, "Empty");
  5. a(t.call([], {}), true, "Empty lists");
  6. a(t.call([1, x, "raz"], [1, x, "raz"]), true, "Same");
  7. a(t.call([1, x, "raz"], { 0: 1, 1: x, 2: "raz", length: 3 }), true,
  8. "Same lists");
  9. a(t.call([1, x, "raz"], [x, 1, "raz"]), false, "Diff order");
  10. a(t.call([1, x], [1, x, "raz"]), false, "Diff length #1");
  11. a(t.call([1, x, "raz"], [1, x]), false, "Diff length #2");
  12. };