// E2E 测试：os 模块
import * as os from "os";

function main(): number {
    // Test os.platform()
    let platform = os.platform();
    print("platform: " + platform);

    // Test os.arch()
    let arch = os.arch();
    print("arch: " + arch);

    // Test os.homedir()
    let home = os.homedir();
    print("homedir: " + home);

    if (platform != "" && arch != "" && home != "") {
        return 1;
    }
    return 0;
}
