tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

compare-array-message.js (753B)


      1 // Copyright (C) 2021 Rick Waldron. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: >
      6  compareArray can handle any value in message arg
      7 includes: [compareArray.js]
      8 features: [BigInt, Symbol]
      9 ---*/
     10 
     11 assert.compareArray([], [], true);
     12 assert.compareArray([], [], 1);
     13 assert.compareArray([], [], 1n);
     14 assert.compareArray([], [], () => {});
     15 assert.compareArray([], [], "test262");
     16 assert.compareArray([], [], Symbol("1"));
     17 assert.compareArray([], [], {});
     18 assert.compareArray([], [], []);
     19 assert.compareArray([], [], -1);
     20 assert.compareArray([], [], Infinity);
     21 assert.compareArray([], [], -Infinity);
     22 assert.compareArray([], [], 0.1);
     23 assert.compareArray([], [], -0.1);
     24 
     25 reportCompare(0, 0);