oppianmatt

Untitled

May 1st, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Test cases:
  2.  
  3. { "test": [0b1001, 0b0011, 0b0110], "answer": 8},
  4. { "test": [0b1001, 0b0011, 0b0111], "answer": 6},
  5. { "test": [0b1011, 0b0011, 0b0110], "answer": 6},
  6. { "test": [0b1101, 0b0111, 0b0110], "answer": 5},
  7. { "test": [0b1001, 0b1011, 0b1110], "answer": 5},
  8.  
  9.  
  10. PASS
  11. 8 == 8
  12. 1001
  13. 0011
  14. 0110
  15. 8
  16. 0011
  17. 0110
  18. 0111
  19. 1001
  20. 1011
  21. 1101
  22. 1110
  23. 1111
  24. -
  25. PASS
  26. 6 == 6
  27. 1001
  28. 0011
  29. 0111
  30. 6
  31. 0011
  32. 0111
  33. 1001
  34. 1011
  35. 1101
  36. 1111
  37. -
  38. PASS
  39. 6 == 6
  40. 1011
  41. 0011
  42. 0110
  43. 6
  44. 0011
  45. 0110
  46. 0111
  47. 1011
  48. 1110
  49. 1111
  50. -
  51. FAIL
  52. 5 != 6
  53. 1101
  54. 0111
  55. 0110
  56. 5
  57. 0110
  58. 0111
  59. 1101
  60. 1110
  61. 1111
  62. -
  63. FAIL
  64. 5 != 6
  65. 1001
  66. 1011
  67. 1110
  68. 5
  69. 1001
  70. 1011
  71. 1101
  72. 1110
  73. 1111
  74. -
Advertisement
Add Comment
Please, Sign In to add comment