import * as process from "process";

let p1 = process.platform();
let p2 = process.arch();
let p3 = process.pid();
let p4 = process.version();

let r = 0;
if (typeof p1 === "string") r++;
if (typeof p2 === "string") r++;
if (p3 > 0) r++;
if (typeof p4 === "string") r++;
// process.cwd is a function, calling it should return string
let p5 = process.cwd();
if (typeof p5 === "string") r++;

console.log("process tests:", r, "/ 5");
if (r === 5) {
    console.log("=== Result: 1 ===");
} else {
    console.log("=== Result: 0 ===");
}
