PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 36ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/tests/javascript/javascript-op.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 55 lines | 33 code | 12 blank | 10 comment | 16 complexity | 8a66656ecb84e36a3f544e78cb807b0d MD5 | raw file
 1var a = 1, b = 1, c = 1, d = 1;
 2
 3/* TOK_OR */
 4x = a || b || c;
 5x = a || b || c || d;
 6
 7/* TOK_AND */
 8x = a && b && c;
 9x = a && b && c && d;
10
11x = a && b || c;
12
13x = a || b && c;
14
15// TOK_BITOR
16x = a | b | c;
17x = a | b | c | d;
18
19// TOK_BITXOR
20x = a ^ b ^ c;
21x = a ^ b ^ c ^ d;
22
23// TOK_BITAND
24x = a & b & c;
25x = a & b & c & d;
26
27// TOK_EQUOP
28x = a == b;
29x = a != b;
30x = a === b;
31x = a !== b;
32
33// TOK_RELOP
34x = a < b;
35x = a <= b;
36x = a > b;
37x = a >= b;
38
39// TOK_SHOP
40x = a << b;
41x = a >> b;
42x = a >>> b;
43
44/* TOK_PLUS, TOK_MINUS */
45x = a + b;
46x = a + b + c;
47x = a + b + c + d;
48x = a - b;
49
50// TOK_STAR, TOK_DIVOP
51x = a * b;
52x = a * b * c;
53x = a * b * c * d;
54x = a / b;
55x = a % b;