fakeMath.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. module.exports = {
  2. '#FakeMath.add': {
  3. throwsExceptions: false,
  4. canReturn: ['number', 'NaN', 'Infinity'],
  5. synchronous: true,
  6. },
  7. '#FakeMath.div': {
  8. throwsExceptions: true,
  9. canReturn: ['number', 'NaN', 'Infinity'],
  10. synchronous: true,
  11. },
  12. '#FakeMath.mul': {
  13. throwsExceptions: false,
  14. canReturn: ['number', 'NaN', 'Infinity'],
  15. synchronous: true,
  16. },
  17. '#FakeMath.sub': {
  18. throwsExceptions: false,
  19. canReturn: ['number', 'NaN', 'Infinity'],
  20. synchronous: true,
  21. },
  22. '#FakeMath.mod': {
  23. throwsExceptions: true,
  24. canReturn: ['number', 'NaN', 'Infinity'],
  25. synchronous: true,
  26. },
  27. '#FakeMath.bitor': {
  28. throwsExceptions: false,
  29. canReturn: ['number', 'NaN', 'Infinity'],
  30. synchronous: true,
  31. },
  32. '#FakeMath.bitand': {
  33. throwsExceptions: false,
  34. canReturn: ['number', 'NaN', 'Infinity'],
  35. synchronous: true,
  36. },
  37. '#FakeMath.bitxor': {
  38. throwsExceptions: false,
  39. canReturn: ['number', 'NaN', 'Infinity'],
  40. synchronous: true,
  41. },
  42. '#FakeMath.not': {
  43. throwsExceptions: false,
  44. canReturn: ['number', 'NaN', 'Infinity'],
  45. synchronous: true,
  46. },
  47. '#FakeMath.lshift': {
  48. throwsExceptions: false,
  49. canReturn: ['number', 'NaN', 'Infinity'],
  50. synchronous: true,
  51. },
  52. '#FakeMath.rshift': {
  53. throwsExceptions: false,
  54. canReturn: ['number', 'NaN', 'Infinity'],
  55. synchronous: true,
  56. },
  57. }