index.uts 1.9 KB
Newer Older
Y
yurj26 已提交
1 2 3 4
import { testArray } from './Array.uts'
import { testDate } from './Date.uts'
import { testString } from './String.uts'
import { testError } from './Error.uts'
杜庆泉's avatar
杜庆泉 已提交
5
import { testKeyWord } from './KeyWord.uts'
6
import { testJSON } from './JSON.uts'
杜庆泉's avatar
杜庆泉 已提交
7
import { testJSONLarge } from './JSON_large.uts'
8
import { testUTSJSONObject } from './UTSJSONObject.uts'
杜庆泉's avatar
杜庆泉 已提交
9
import { testConsole } from './console.uts'
Y
yurj26 已提交
10 11 12 13 14 15
import { testNumber } from './Number.uts'
import { testMap } from './Map.uts'
import { testSet } from './Set.uts'
import { testOperators } from './Operators.uts'
import { testMath } from './Math.uts'
import { testRegExp } from './RegExp.uts'
16
import { testForLoop } from './ForLoop.uts'
lizhongyi_'s avatar
lizhongyi_ 已提交
17
import { testGlobal } from './Global.uts'
18
import { testType } from './Type.uts'
Y
yurj26 已提交
19
export { Result } from './tests.uts'
Y
yurj26 已提交
20 21 22

// Promise、Proxy、Reflect、Weakmap、WeakSet 不支持
export function runTests() : UTSJSONObject {
Y
yurj26 已提交
23 24 25 26 27 28 29 30 31 32 33 34
  const ArrayRes = testArray();
  const DateRes = testDate();
  const StringRes = testString();
  const ErrorRes = testError();
  const JsonRes = testJSON();
  const NumberRes = testNumber();
  const MapRes = testMap();
  const SetRes = testSet();
  const OperatorsRes = testOperators();
  const MathRes = testMath();
  const RegExpRes = testRegExp();
  const KeyWordRes = testKeyWord();
35
  const ForLoopRes = testForLoop();
lizhongyi_'s avatar
lizhongyi_ 已提交
36
  const GlobalRes = testGlobal();
37 38
  const TypeRes = testType();
  const JSONLargeRes = testJSONLarge();
39 40
  const consoleRes = testConsole();
  const UTSJSONObjectRes = testUTSJSONObject();
Y
yurj26 已提交
41 42 43 44 45
  return {
    Array: ArrayRes,
    Date: DateRes,
    String: StringRes,
    Error: ErrorRes,
46 47
    Json: JsonRes,
    JSONLarge:JSONLargeRes,
Y
yurj26 已提交
48 49 50 51 52 53 54
    Number: NumberRes,
    Map: MapRes,
    Set: SetRes,
    Operators: OperatorsRes,
    Math: MathRes,
    RegExp: RegExpRes,
    KeyWord: KeyWordRes,
55 56
    ForLoop: ForLoopRes,
    Global: GlobalRes,
杜庆泉's avatar
杜庆泉 已提交
57
    Type: TypeRes,
58 59
    console:consoleRes,
    UTSJSONObject:UTSJSONObjectRes
Y
yurj26 已提交
60
  }
Y
yurj26 已提交
61
}