PageRenderTime 11ms CodeModel.GetById 7ms RepoModel.GetById 1ms 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
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. var a = 1, b = 1, c = 1, d = 1;
  2. /* TOK_OR */
  3. x = a || b || c;
  4. x = a || b || c || d;
  5. /* TOK_AND */
  6. x = a && b && c;
  7. x = a && b && c && d;
  8. x = a && b || c;
  9. x = a || b && c;
  10. // TOK_BITOR
  11. x = a | b | c;
  12. x = a | b | c | d;
  13. // TOK_BITXOR
  14. x = a ^ b ^ c;
  15. x = a ^ b ^ c ^ d;
  16. // TOK_BITAND
  17. x = a & b & c;
  18. x = a & b & c & d;
  19. // TOK_EQUOP
  20. x = a == b;
  21. x = a != b;
  22. x = a === b;
  23. x = a !== b;
  24. // TOK_RELOP
  25. x = a < b;
  26. x = a <= b;
  27. x = a > b;
  28. x = a >= b;
  29. // TOK_SHOP
  30. x = a << b;
  31. x = a >> b;
  32. x = a >>> b;
  33. /* TOK_PLUS, TOK_MINUS */
  34. x = a + b;
  35. x = a + b + c;
  36. x = a + b + c + d;
  37. x = a - b;
  38. // TOK_STAR, TOK_DIVOP
  39. x = a * b;
  40. x = a * b * c;
  41. x = a * b * c * d;
  42. x = a / b;
  43. x = a % b;