Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | // Copyright (c) ZeroC, Inc.
import { Ice } from "@zeroc/ice";
import { Test } from "./Test.js";
import { TestHelper, test } from "../../Common/TestHelper.js";
export class Client extends TestHelper {
allTests() {
const out = this.getWriter();
out.write("testing Slice predefined macros... ");
const d = new Test.Default();
test(d.x == 10);
test(d.y == 10);
const nd = new Test.NoDefault();
test(nd.x != 10);
test(nd.y != 10);
const c = new Test.JsOnly();
test(c.lang == "js");
test(c.version == Ice.intVersion());
out.writeLine("ok");
}
run() {
this.allTests();
}
}
|