void testSeven() { std::ostringstream out; printLargeDigit(7u,out); ASSERT_EQUAL(" - \n" " |\n" " \n" " |\n" " \n",out.str()); }
void testNine() { std::ostringstream out; printLargeDigit(9u,out); ASSERT_EQUAL(" - \n" "| |\n" " - \n" " |\n" " - \n",out.str()); }
void testZero() { std::ostringstream out; printLargeDigit(0u,out); ASSERT_EQUAL(" - \n" "| |\n" " \n" "| |\n" " - \n",out.str()); }
void testOne() { std::ostringstream out; printLargeDigit(1u,out); ASSERT_EQUAL(" \n" " |\n" " \n" " |\n" " \n",out.str()); }
void testLargeEight() { std::ostringstream out; printLargeDigit(8u,2,out); ASSERT_EQUAL( " -- \n" "| |\n" "| |\n" " -- \n" "| |\n" "| |\n" " -- \n", out.str()); }
void shouldPrintNine() { std::ostringstream out{}; printLargeDigit(9, out); ASSERT_EQUAL(" - \n| |\n - \n |\n - \n", out.str()); }
void shouldPrintSeven() { std::ostringstream out{}; printLargeDigit(7, out); ASSERT_EQUAL(" - \n| |\n \n |\n \n", out.str()); }
void shouldPrintFour() { std::ostringstream out{}; printLargeDigit(4, out); ASSERT_EQUAL(" \n| |\n - \n |\n \n", out.str()); }