package ee.ioc.phon.android.speechutils;

import org.junit.Test;

import static ee.ioc.phon.android.speechutils.RecognitionServiceManager.makeLangLabel;
import static org.junit.Assert.assertEquals;

public class RecognitionServiceManagerTest {

    @Test
    public void makeLangLabel01() {
        assertEquals("?", makeLangLabel(null));
    }

    @Test
    public void makeLangLabel02() {
        assertEquals("Estonian (Estonia)", makeLangLabel("et-EE"));
    }

    @Test
    public void makeLangLabel03() {
        assertEquals("German (Austria)", makeLangLabel("de-AT"));
    }

    @Test
    public void makeLangLabel04() {
        assertEquals("Võro (Estonia)", makeLangLabel("vro-ee"));
    }
}
@@ -695,10 +695,111 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void makeLangLabel05() %7B%0A        assertEquals(%22%22, makeLangLabel(%22und%22));%0A    %7D
 %0A%7D

Add more tests