index.uts 1.8 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 13 14 15 16
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 已提交
17
export { Result } from './tests.uts'
Y
yurj26 已提交
18 19 20 21 22 23 24 25 26 27 28 29 30

// 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
杜庆泉 已提交
31
    const RegExpRes = testRegExp();
杜庆泉's avatar
杜庆泉 已提交
32 33
	const KeyWordRes = testKeyWord();
	
Y
yurj26 已提交
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    // #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
杜庆泉 已提交
57
		KeyWord:KeyWordRes
Y
yurj26 已提交
58 59
    }
}