import { testArray } from './Array.uts' import { testDate } from './Date.uts' import { testString } from './String.uts' import { testError } from './Error.uts' import { testKeyWord } from './KeyWord.uts' import { testJSON } from './JSON.uts' import { testJSONLarge } from './JSON_large.uts' import { testUTSJSONObject } from './UTSJSONObject.uts' import { testConsole } from './console.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' import { testForLoop } from './ForLoop.uts' import { testGlobal } from './Global.uts' import { testType } from './Type.uts' export { Result } from './tests.uts' import { testArrayBuffer } from './ArrayBuffer.uts' import { testNativeCode } from './NativeCode.uts' import { testPromise} from "./Promise.uts" // Proxy、Reflect、Weakmap、WeakSet 不支持 export function runTests() : UTSJSONObject { 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(); const ForLoopRes = testForLoop(); const GlobalRes = testGlobal(); const TypeRes = testType(); const JSONLargeRes = testJSONLarge(); const consoleRes = testConsole(); const UTSJSONObjectRes = testUTSJSONObject(); // #ifdef APP-ANDROID || WEB const ArrayBufferRes = testArrayBuffer(); // #endif const NativeCodeRes = testNativeCode(); const PromiseRes = testPromise(); return { Array: ArrayRes, Date: DateRes, String: StringRes, Error: ErrorRes, Json: JsonRes, JSONLarge: JSONLargeRes, Number: NumberRes, Map: MapRes, Set: SetRes, Operators: OperatorsRes, Math: MathRes, RegExp: RegExpRes, KeyWord: KeyWordRes, ForLoop: ForLoopRes, Global: GlobalRes, Type: TypeRes, console: consoleRes, UTSJSONObject: UTSJSONObjectRes, // #ifdef APP-ANDROID || WEB ArrayBuffer: ArrayBufferRes, // #endif NativeCode: NativeCodeRes, Primise: PromiseRes } }