package com.fishercoder;

import com.fishercoder.solutions._1389;
import org.junit.BeforeClass;
import org.junit.Test;

import static org.junit.Assert.assertArrayEquals;

public class _1389Test {
    private static _1389.Solution1 solution1;

    @BeforeClass
    public static void setup() {
        solution1 = new _1389.Solution1();
    }

    @Test
    public void test1() {
        assertArrayEquals(new int[]{0, 4, 1, 3, 2}, solution1.createTargetArray(new int[]{0, 1, 2, 3, 4}, new int[]{0, 1, 2, 2, 1}));
    }

    @Test
    public void test2() {
        assertArrayEquals(new int[]{1, 2, 3, 4, 0}, solution1.createTargetArray(new int[]{0, 1, 2, 3, 0}, new int[]{0, 1, 2, 3, 4}));
    }

    @Test
    public void test3() {
        assertArrayEquals(new int[]{1}, solution1.createTargetArray(new int[]{0}, new int[]{1}));
    }

}
@@ -585,16 +585,19 @@
 w int%5B%5D%7B
+0, 
 1, 2, 3,
@@ -598,19 +598,16 @@
  2, 3, 4
-, 0
 %7D, solut
@@ -639,27 +639,24 @@
 w int%5B%5D%7B
-0, 
 1, 2, 3,
  0%7D, new
@@ -647,16 +647,19 @@
 1, 2, 3,
+ 4,
  0%7D, new
@@ -677,17 +677,17 @@
 , 2, 3, 
-4
+0
 %7D));%0A   
@@ -804,17 +804,17 @@
 w int%5B%5D%7B
-0
+1
 %7D, new i
@@ -818,17 +818,17 @@
 w int%5B%5D%7B
-1
+0
 %7D));%0A   

fix build