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'
杜庆泉's avatar
杜庆泉 已提交
6
import { testExtapi } from './Extapi.uts'
Y
yurj26 已提交
7 8 9 10 11 12 13 14 15 16 17
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'
// #ifdef APP-ANDROID
// import { testReactiveArray } from './reactiveArray.uts'
// import { testReactiveMap } from './ReactiveMap.uts'
// #endif
Y
yurj26 已提交
18
export { Result } from './tests.uts'
Y
yurj26 已提交
19 20 21 22 23 24 25 26 27 28 29 30 31

// Promise、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();
杜庆泉's avatar
杜庆泉 已提交
32
    const RegExpRes = testRegExp();
杜庆泉's avatar
杜庆泉 已提交
33 34
	const KeyWordRes = testKeyWord();
	
Y
yurj26 已提交
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
    // #ifdef APP-ANDROID
    // const ReactiveArrayRes = testReactiveArray();
    // const ReactiveMapRes = testReactiveMap();
    // #endif

    return {
        Array: ArrayRes,
        // #ifdef APP-ANDROID
        // ReactiveArray: ReactiveArrayRes,
        // #endif
        Date: DateRes,
        String: StringRes,
        Error: ErrorRes,
        Json: JsonRes,
        Number: NumberRes,
        Map: MapRes,
        // #ifdef APP-ANDROID
        // ReactiveMap: ReactiveMapRes,
        // #endif
        Set: SetRes,
        Operators: OperatorsRes,
        Math: MathRes,
        RegExp: RegExpRes,
杜庆泉's avatar
杜庆泉 已提交
58
		KeyWord:KeyWordRes
Y
yurj26 已提交
59 60
    }
}