BankOCR { public static int parse(String lcdText) { return parseDigits(split(lcdText)); }  static int parse(String lcdText); static final int DIGIT_WIDTH; }
@Test public void acceptance_test() { Assertions.assertThat(BankOCR.parse( " _ _ _ _ _ _ _ \n" + " | _| _||_||_ |_ ||_||_|\n" + " ||_ _| | _||_| ||_| _|\n" + " ")) .isEqualTo(123456789); }
@Test public void it_parses_1() { assertThat(parse( " \n" + " |\n" + " |\n" + " ")) .isEqualTo(1); }
@Test public void it_parses_2() { assertThat(parse( " _ \n" + " _|\n" + "|_ \n" + " ")) .isEqualTo(2); }
@Test public void it_parses_3(){ assertThat(parse( " _ \n" + " _|\n" + " _|\n" + " ")) .isEqualTo(3); }
@Test public void it_parses_4(){ assertThat(parse( " \n" + "|_|\n" + " |\n" + " ")) .isEqualTo(4); }
@Test public void it_parses_42(){ assertThat(parse( " _ \n" + "|_| _|\n" + " ||_ \n" + " ")) .isEqualTo(42); }