Пример #1
0
 @Test
 public void case27() {
   int W = 402349;
   assertArrayEquals(
       new int[] {-177147, -19683, -81, -9, 1, 3, 27, 2187, 6561, 59049, 531441},
       apothecary.balance(W));
 }
Пример #2
0
 @Test
 public void case29() {
   int W = 789123;
   assertArrayEquals(
       new int[] {-729, -9, 3, 27, 81, 243, 2187, 19683, 59049, 177147, 531441},
       apothecary.balance(W));
 }
Пример #3
0
 @Test
 public void case36() {
   int W = 931112;
   assertArrayEquals(
       new int[] {-531441, -177147, -19683, -729, -81, -9, -1, 27, 243, 6561, 59049, 1594323},
       apothecary.balance(W));
 }
Пример #4
0
 @Test
 public void case4() {
   int W = 1000000;
   assertArrayEquals(
       new int[] {-531441, -59049, -6561, -243, -27, 1, 81, 729, 2187, 1594323},
       apothecary.balance(W));
 }
Пример #5
0
 @Test
 public void case26() {
   int W = 278982;
   assertArrayEquals(
       new int[] {-177147, -59049, -19683, -2187, -729, -243, -9, 27, 6561, 531441},
       apothecary.balance(W));
 }
Пример #6
0
 @Test
 public void case32() {
   int W = 803158;
   assertArrayEquals(
       new int[] {
         -531441, -177147, -59049, -19683, -6561, -243, -27, -9, -3, 1, 81, 729, 2187, 1594323
       },
       apothecary.balance(W));
 }
Пример #7
0
 @Test
 public void case33() {
   int W = 797189;
   assertArrayEquals(
       new int[] {
         -531441, -177147, -59049, -19683, -6561, -2187, -729, -243, -81, -9, -3, -1, 1594323
       },
       apothecary.balance(W));
 }
Пример #8
0
 @Test
 public void case38() {
   int W = 2016;
   assertArrayEquals(new int[] {-243, -9, 81, 2187}, apothecary.balance(W));
 }
Пример #9
0
 @Test
 public void case41() {
   int W = 12;
   assertArrayEquals(new int[] {3, 9}, apothecary.balance(W));
 }
Пример #10
0
 @Test
 public void case20() {
   int W = 911;
   assertArrayEquals(new int[] {-81, -9, -1, 3, 27, 243, 729}, apothecary.balance(W));
 }
Пример #11
0
 @Test
 public void case37() {
   int W = 723243;
   assertArrayEquals(
       new int[] {-6561, -729, -9, 3, 81, 2187, 19683, 177147, 531441}, apothecary.balance(W));
 }
Пример #12
0
 @Test
 public void case12() {
   int W = 9;
   assertArrayEquals(new int[] {9}, apothecary.balance(W));
 }
Пример #13
0
 @Test
 public void case25() {
   int W = 101010;
   assertArrayEquals(
       new int[] {-59049, -19683, -243, -81, 3, 729, 2187, 177147}, apothecary.balance(W));
 }
Пример #14
0
 @Test
 public void case14() {
   int W = 22;
   assertArrayEquals(new int[] {-9, 1, 3, 27}, apothecary.balance(W));
 }
Пример #15
0
 @Test
 public void case9() {
   int W = 6;
   assertArrayEquals(new int[] {-3, 9}, apothecary.balance(W));
 }
Пример #16
0
 @Test
 public void case21() {
   int W = 2045;
   assertArrayEquals(new int[] {-243, -9, -1, 3, 27, 81, 2187}, apothecary.balance(W));
 }
Пример #17
0
 @Test
 public void case31() {
   int W = 531441;
   assertArrayEquals(new int[] {531441}, apothecary.balance(W));
 }
Пример #18
0
 @Test
 public void case28() {
   int W = 654321;
   assertArrayEquals(
       new int[] {-59049, -2187, -243, -81, 3, 729, 6561, 177147, 531441}, apothecary.balance(W));
 }
Пример #19
0
 @Test
 public void case22() {
   int W = 4987;
   assertArrayEquals(new int[] {-2187, -81, -27, -9, 1, 729, 6561}, apothecary.balance(W));
 }
Пример #20
0
 @Test
 public void case23() {
   int W = 21345;
   assertArrayEquals(new int[] {-729, -27, -9, -3, 243, 2187, 19683}, apothecary.balance(W));
 }
Пример #21
0
 @Test
 public void case19() {
   int W = 500;
   assertArrayEquals(new int[] {-243, -9, -3, -1, 27, 729}, apothecary.balance(W));
 }
Пример #22
0
 @Test
 public void case18() {
   int W = 316;
   assertArrayEquals(new int[] {-9, 1, 81, 243}, apothecary.balance(W));
 }
Пример #23
0
 @Test
 public void case7() {
   int W = 4;
   assertArrayEquals(new int[] {1, 3}, apothecary.balance(W));
 }
Пример #24
0
 @Test
 public void case34() {
   int W = 94;
   assertArrayEquals(new int[] {1, 3, 9, 81}, apothecary.balance(W));
 }
Пример #25
0
 @Test
 public void case11() {
   int W = 8;
   assertArrayEquals(new int[] {-1, 9}, apothecary.balance(W));
 }
Пример #26
0
 @Test
 public void case35() {
   int W = 87629;
   assertArrayEquals(
       new int[] {-81, -9, -3, -1, 243, 2187, 6561, 19683, 59049}, apothecary.balance(W));
 }
Пример #27
0
 @Test
 public void case13() {
   int W = 14;
   assertArrayEquals(new int[] {-9, -3, -1, 27}, apothecary.balance(W));
 }
Пример #28
0
 @Test
 public void case24() {
   int W = 69100;
   assertArrayEquals(
       new int[] {-6561, -2187, -729, -243, -3, 1, 9, 81, 19683, 59049}, apothecary.balance(W));
 }
Пример #29
0
 @Test
 public void case15() {
   int W = 45;
   assertArrayEquals(new int[] {-27, -9, 81}, apothecary.balance(W));
 }
Пример #30
0
 @Test
 public void case17() {
   int W = 156;
   assertArrayEquals(new int[] {-81, -9, 3, 243}, apothecary.balance(W));
 }