View Javadoc
1   package ch.hslu.exercises.sw13.ex5;
2   
3   import org.junit.jupiter.api.Test;
4   
5   import static org.junit.jupiter.api.Assertions.*;
6   
7   class QuickSearchTest {
8       @Test
9       void test() {
10          assertEquals(-1, QuickSearch.quickSearch("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaab"));
11          assertEquals(0, QuickSearch.quickSearch("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaa"));
12          assertEquals(12, QuickSearch.quickSearch("aaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaa", "aaab"));
13          assertEquals(31, QuickSearch.quickSearch("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab", "aaab"));
14      }
15  
16  }