/XtraUtils

Primary LanguageJavaScriptMIT LicenseMIT

Github All Releases GitHub last commit GitHub repo size in bytes GitHub code size in bytes Build Status

  __   __   _
  \ \ / / _| |_  _ __   __ _
   \ V / |_   _|| '__| / _` |
   / Λ \   | |  | |   | (_| |
  /_/ \_\  |_|  |_|    \__,_|
  
   _    _    _    _  _          _
  | |  | | _| |_ (_)| | ___    (_) ___ 
  | |  | ||_   _| _ | |/___|    _ / __|
  | |__| |  | |  | || |\__ \ _ | |\__ \
   \____/   |_|  |_||_||___/(_)| ||___/
                               | |
                              _/ |
                             |__/ 
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> <script src="./scripts/tests.js"></script> <script src="./scripts/XtraUtils.js"></script> <script src="./scripts/Boolean.js"></script> <script src="./scripts/SealedArray.js"></script> <script src="./scripts/Vector.js"></script> <script src="./scripts/Object.js"></script> <script src="./scripts/Array.js"></script> <script src="./scripts/Number.js"></script> <script src="./scripts/Function.js"></script> <script src="./scripts/String.js"></script> <script src="./scripts/Testers.js"></script>

Compatability with your device:

<script> 'use strict'; let data = { fails: 0, warns: 0, warnings: [], successes: 0, errors: [], tests: tests.reduce((i,j)=>{return j.length+i-1}, 0) } new Vue({ el: "#bar", data: data }) !async function(){ const wait = ms => new Promise((r, j)=>setTimeout(r, ms)) await XtraUtils.activateAll(); for(let i = 0; i < tests.length; i++) { let test = tests[i]; for(let j = 1; j < test.length; j++) { try { let func = await Function(test[j]), res = await func(); if(!res) { data.warns+=1 await data.warnings.push([`Test: ${test[0]}:${j+1}`, res, test[j]]) } else { data.successes+=1; } } catch (e) { await console.error(e) await data.errors.push([`Test: ${test[0]}:${j+1}`, e.stack]); data.fails+=1; }; }; } }(); </script>