Guest User

Untitled

a guest
Mar 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. @Test
  2. void test1() throws IOException {
  3. test(new TestCase(Arrays.asList(
  4. "1 42",
  5. "1 42",
  6. "1 43",
  7. "2 43",
  8. "1 42"), Arrays.asList(
  9. 42,
  10. 43,
  11. 44,
  12. 43
  13. )));
  14. }
  15.  
  16. @Test
  17. void test2() throws IOException {
  18. test(new TestCase(Arrays.asList(
  19. "1 0",
  20. "1 1",
  21. "1 2",
  22. "2 0",
  23. "2 1"), Arrays.asList(
  24. 0,
  25. 1,
  26. 2
  27. )));
  28. }
  29.  
  30. @Test
  31. void test3() throws IOException {
  32. test(new TestCase(Arrays.asList(
  33. "1 0",
  34. "1 0",
  35. "1 0",
  36. "2 0",
  37. "2 1"), Arrays.asList(
  38. 0,
  39. 1,
  40. 2
  41. )));
  42. }
  43.  
  44. @Test
  45. void test4() throws IOException {
  46. test(new TestCase(Arrays.asList(
  47. "1 0",
  48. "1 2",
  49. "1 1",
  50. "2 0",
  51. "2 1",
  52. "1 1"), Arrays.asList(
  53. 0,
  54. 2,
  55. 1,
  56. 1
  57. )));
  58. }
  59.  
  60. @Test
  61. void test5() throws IOException {
  62. test(new TestCase(Arrays.asList(
  63. "1 3",
  64. "1 2",
  65. "1 1",
  66. "1 0",
  67. "1 0"), Arrays.asList(
  68. 3,
  69. 2,
  70. 1,
  71. 0,
  72. 4
  73. )));
  74. }
  75.  
  76. @Test
  77. void test6() throws IOException {
  78. test(new TestCase(Arrays.asList(
  79. "1 0",
  80. "1 2",
  81. "1 4",
  82. "1 1",
  83. "1 3",
  84. "2 0",
  85. "1 0",
  86. "1 0"), Arrays.asList(
  87. 0,
  88. 2,
  89. 4,
  90. 1,
  91. 3,
  92. 0,
  93. 5
  94. )));
  95. }
  96.  
  97. @Test
  98. void test7() throws IOException {
  99. test(new TestCase(Arrays.asList(
  100. "1 0",
  101. "1 1",
  102. "1 2",
  103. "2 2",
  104. "1 0"), Arrays.asList(
  105. 0,
  106. 1,
  107. 2,
  108. 2
  109. )));
  110. }
  111.  
  112. @Test
  113. void test8() throws IOException {
  114. test(new TestCase(Arrays.asList(
  115. "1 0",
  116. "1 1",
  117. "1 2",
  118. "2 0",
  119. "2 1",
  120. "1 0",
  121. "1 0",
  122. "1 0"), Arrays.asList(
  123. 0,
  124. 1,
  125. 2,
  126. 0,
  127. 1,
  128. 3
  129. )));
  130. }
  131.  
  132. @Test
  133. void test9() throws IOException {
  134. test(new TestCase(Arrays.asList(
  135. "1 0",
  136. "2 0",
  137. "1 0",
  138. "1 0",
  139. "2 1",
  140. "2 0"), Arrays.asList(
  141. 0,
  142. 0,
  143. 1
  144. )));
  145. }
  146.  
  147. @Test
  148. void test10() throws IOException {
  149. test(new TestCase(Arrays.asList(
  150. "1 0",
  151. "2 0",
  152. "1 0",
  153. "1 0",
  154. "2 1",
  155. "2 0"), Arrays.asList(
  156. 0,
  157. 0,
  158. 1
  159. )));
  160. }
  161.  
  162. @Test
  163. void test11() throws IOException {
  164. test(new TestCase(Arrays.asList(
  165. "1 5",
  166. "1 3",
  167. "1 4",
  168. "2 5",
  169. "1 5",
  170. "2 3"), Arrays.asList(
  171. 5,
  172. 3,
  173. 4,
  174. 5
  175. )));
  176. }
  177.  
  178. @Test
  179. void test12() throws IOException {
  180. test(new TestCase(Arrays.asList(
  181. "1 1",
  182. "1 0",
  183. "1 2",
  184. "2 1",
  185. "1 1",
  186. "1 2"), Arrays.asList(
  187. 1,
  188. 0,
  189. 2,
  190. 1,
  191. 3
  192. )));
  193. }
  194.  
  195. @Test
  196. void test13() throws IOException {
  197. test(new TestCase(Arrays.asList(
  198. "1 9",
  199. "1 8",
  200. "1 7",
  201. "1 6",
  202. "1 8",
  203. "2 9",
  204. "1 9"), Arrays.asList(
  205. 9,
  206. 8,
  207. 7,
  208. 6,
  209. 10,
  210. 9
  211. )));
  212. }
  213.  
  214. @Test
  215. void test14() throws IOException {
  216. test(new TestCase(Arrays.asList(
  217. "1 0",
  218. "2 0",
  219. "1 1",
  220. "2 1",
  221. "1 2",
  222. "2 2"), Arrays.asList(
  223. 0,
  224. 1,
  225. 2
  226. )));
  227. }
  228.  
  229. @Test
  230. void test15() throws IOException {
  231. test(new TestCase(Arrays.asList(
  232. "1 1000000000",
  233. "1 0",
  234. "2 0",
  235. "2 1000000000"), Arrays.asList(
  236. 1_000_000_000,
  237. 0
  238. )));
  239. }
Add Comment
Please, Sign In to add comment