index.uts 1.6 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'
Y
yurj26 已提交
6 7 8 9 10 11 12
import { testJSON } from './JSON.uts'
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'
13
import { testForLoop } from './ForLoop.uts'
lizhongyi_'s avatar
lizhongyi_ 已提交
14
import { testGlobal } from './Global.uts'
15
import { testType } from './Type.uts'
Y
yurj26 已提交
16
export { Result } from './tests.uts'
Y
yurj26 已提交
17 18 19

// Promise、Proxy、Reflect、Weakmap、WeakSet 不支持
export function runTests() : UTSJSONObject {
Y
yurj26 已提交
20 21 22 23 24 25 26 27 28 29 30 31
  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();
32
  const ForLoopRes = testForLoop();
lizhongyi_'s avatar
lizhongyi_ 已提交
33
  const GlobalRes = testGlobal();
34
  const TypeRes = testType();
Y
yurj26 已提交
35

Y
yurj26 已提交
36 37 38 39 40 41 42 43 44 45 46 47 48
  return {
    Array: ArrayRes,
    Date: DateRes,
    String: StringRes,
    Error: ErrorRes,
    Json: JsonRes,
    Number: NumberRes,
    Map: MapRes,
    Set: SetRes,
    Operators: OperatorsRes,
    Math: MathRes,
    RegExp: RegExpRes,
    KeyWord: KeyWordRes,
49 50 51
    ForLoop: ForLoopRes,
    Global: GlobalRes,
    Type: TypeRes
Y
yurj26 已提交
52
  }
Y
yurj26 已提交
53
}