blob: 129df405f954cc1d36e9e6cd90c2cd317eaa2c7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
function t1(v)
{
if (v)
return 1;
return 0;
}
assertEq(t1(createIsHTMLDDA()), 0);
assertEq(t1(createIsHTMLDDA()), 0);
assertEq(t1(createIsHTMLDDA()), 0);
function t2(v)
{
if (v)
return 1;
return 0;
}
assertEq(t2(17), 1);
assertEq(t2(0), 0);
assertEq(t2(-0), 0);
assertEq(t2(createIsHTMLDDA()), 0);
assertEq(t2(createIsHTMLDDA()), 0);
assertEq(t2(createIsHTMLDDA()), 0);
|