@@ -0,0 +1,2092 @@
+import android.support.test.filters.SmallTest;%0Aimport android.support.test.runner.AndroidJUnit4;%0A%0Aimport com.hewgill.android.nzsldict.Dictionary;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport java.util.List;%0A%0Aimport static android.support.test.InstrumentationRegistry.getInstrumentation;%0Aimport static junit.framework.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotEquals;%0A%0A@RunWith(AndroidJUnit4.class)%0A@SmallTest%0Apublic class DictionaryAndroidUnitTest %7B%0A    private Dictionary mDictionary;%0A    private List%3CDictionary.DictItem%3E mResults;%0A%0A    @Before%0A    public void createDictionary() %7B%0A        mDictionary = new Dictionary(getInstrumentation().getTargetContext());%0A    %7D%0A%0A    @After%0A    public void clearResults() %7B%0A        mResults = null;%0A    %7D%0A%0A    @Test%0A    public void dictionary_getWordsContainsWords() %7B%0A        assertNotEquals(mDictionary.getWords().size(), 0);%0A    %7D%0A%0A    @Test%0A    public void dictionary_getWordsExactMatchMainGloss() %7B%0A        mResults = mDictionary.getWords(%22Book%22);%0A        assertEquals(mResults.get(0).gloss, %22book%22);%0A    %7D%0A%0A    @Test%0A    public void dictionary_getWordsContainsMatchMainGlass() %7B%0A        mResults = mDictionary.getWords(%22las%22);%0A        assertEquals(mResults.get(0).gloss, %22sunglasses%22);%0A    %7D%0A%0A    @Test%0A    public void dictionary_getWordsExactMatchMaoriGloss() %7B%0A        mResults = mDictionary.getWords(%22ora%22);%0A        assertEquals(mResults.get(0).gloss, %22alive, live, survive%22);%0A    %7D%0A%0A    @Test%0A    public void dictionary_getWordsContainsMatchMaoriGloss() %7B%0A        mResults = mDictionary.getWords(%22orang%22);%0A        assertEquals(mResults.get(0).gloss, %22politics%22);%0A    %7D%0A%0A    @Test%0A    public void dictionary_getWordsExactSecondaryGloss() %7B%0A        mResults = mDictionary.getWords(%22nought%22);%0A        assertEquals(mResults.get(0).gloss, %22zero%22);%0A    %7D%0A%0A    @Test%0A    public void dictionary_getWordsContainsSecondaryGloss() %7B%0A        mResults = mDictionary.getWords(%22keep ou%22);%0A        assertEquals(mResults.get(0).gloss, %22want nothing to do with%22);%0A    %7D%0A%7D%0A

Add tests asserting that search matching is working as per spec