package org.ligi.androidhelper.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.ligi.androidhelper.AndroidHelper;
import org.robolectric.RobolectricTestRunner;
import static org.fest.assertions.Assertions.assertThat;

@RunWith(RobolectricTestRunner.class)
public class TheArrayHelper {

    @Test
    public void should_proper_combine_arrays() {
        Byte[] test=AndroidHelper.at(new Byte[] { 23,5}).combineWith(new Byte[] { 42 ,6});

        assertThat(test).isEqualTo(new Byte[] { 23,5,42,6});
    }

}

@@ -353,16 +353,21 @@
 combine_
+byte_
 arrays()
@@ -529,10 +529,700 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void should_proper_combine_string_arrays() %7B%0A        String%5B%5D test=AndroidHelper.at(new String%5B%5D %7B %22foo%22,%22bar%22%7D).combineWith(new String %5B%5D %7B %22ftw%22%7D);%0A%0A        assertThat(test).isEqualTo(new String%5B%5D %7B %22foo%22 , %22bar%22, %22ftw%22%7D);%0A    %7D%0A%0A    @Test%0A    public void should_work_even_on_empty_arrays() %7B%0A        Object%5B%5D test=AndroidHelper.at(new Object%5B%5D %7B%7D).combineWith(new Object %5B%5D %7B%7D);%0A%0A        assertThat(test).isEqualTo(new Object%5B%5D %7B%7D);%0A    %7D%0A%0A%0A    @Test%0A    public void should_work_when_one_side_is_empty() %7B%0A        String%5B%5D test=AndroidHelper.at(new String%5B%5D %7B%7D).combineWith(new String %5B%5D %7B %22lol%22%7D);%0A%0A        assertThat(test).isEqualTo(new String%5B%5D %7B %22lol%22%7D);%0A    %7D%0A%0A
 %7D%0A

add more tests