Exemplo n.º 1
0
 @Test
 public void test06789Run() {
   Digital ourDigital = new Digital();
   assertEquals(
       6789,
       ourDigital.convertSeriesToInteger(" _  _  _  _  _ ", "| ||_   ||_||_|", "|_||_|  ||_|  |"));
 }
Exemplo n.º 2
0
 @Test
 public void testSeriesOfNums() {
   Digital ourDigital = new Digital();
   assertEquals(
       543210,
       ourDigital.convertSeriesToInteger(
           " _     _  _     _ ", "|_ |_| _| _| | | |", " _|  | _||_  | |_|"));
 }
Exemplo n.º 3
0
 @Test
 public void testSingleNumber() {
   Digital ourDigital = new Digital();
   assertEquals(8, ourDigital.convertSeriesToInteger(" _ ", "|_|", "|_|"));
 }