Skip to content

Commit f97c216

Browse files
committed
Remove commented-out tests
1 parent 7a2a15e commit f97c216

File tree

1 file changed

+0
-93
lines changed

1 file changed

+0
-93
lines changed

lib/render_test.cpp

Lines changed: 0 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -564,98 +564,5 @@ int main()
564564
test_render_state();
565565
test_render_diff();
566566

567-
// // Editable lines
568-
// State state3;
569-
// state3.parse_line("0 */6 * * * bash test.sh");
570-
// state3.parse_line("0 * * * * bash test2.sh");
571-
// std::string ui3 = replace_ansi(render_state(state3, 100, 50), true);
572-
// // debug_print_ui(ui3);
573-
// assert(
574-
// ui3 == "\
575-
// {DIM}| {RESET}{DIM}> {RESET}{YELLOW_BG}{BLACK} 0 {RESET}{YELLOW} */6 {RESET}{YELLOW} * {RESET}{YELLOW} * {RESET}{YELLOW} * {RESET}{MAGENTA} bash test.sh {RESET}\n\
576-
// {DIM}| {RESET}{DIM}> {RESET}{YELLOW} 0 {RESET}{YELLOW} * {RESET}{YELLOW} * {RESET}{YELLOW} * {RESET}{YELLOW} * {RESET}{MAGENTA} bash test2.sh {RESET}\n\
577-
// {BOLD}cronedit {RESET}{DIM}<arrow keys> move <s> save and quit <q> quit <enter> edit {RESET}{YELLOW}minute {RESET}{DIM}\n\
578-
// <n> new <c> comment {RESET}{DIM}<d> duplicate <r> remove {RESET}\n\n\
579-
// ");
580-
581-
// // Moving around
582-
// State state4;
583-
// state4.parse_line("0 */6 * * * bash test.sh");
584-
// state4.parse_line("0 * * * * bash test2.sh");
585-
// state4.on_key_down();
586-
// state4.on_key_right();
587-
// state4.on_key_right();
588-
// std::string ui4 = replace_ansi(render_state(state4, 100, 50), true);
589-
// // debug_print_ui(ui4);
590-
// assert(
591-
// ui4 == "\
592-
// {DIM}| {RESET}{DIM}> {RESET}{YELLOW} 0 {RESET}{YELLOW} */6 {RESET}{YELLOW} * {RESET}{YELLOW} * {RESET}{YELLOW} * {RESET}{MAGENTA} bash test.sh {RESET}\n\
593-
// {DIM}| {RESET}{DIM}> {RESET}{YELLOW} 0 {RESET}{YELLOW} * {RESET}{YELLOW_BG}{BLACK} * {RESET}{YELLOW} * {RESET}{YELLOW} * {RESET}{MAGENTA} bash test2.sh {RESET}\n\
594-
// {BOLD}cronedit {RESET}{DIM}<arrow keys> move <s> save and quit <q> quit <enter> edit {RESET}{YELLOW}day of month{RESET}{DIM}\n\
595-
// <n> new <c> comment {RESET}{DIM}<d> duplicate <r> remove {RESET}\n\n\
596-
// ");
597-
598-
// // Terminal width
599-
// State state5;
600-
// state5.parse_line("0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test1.sh");
601-
// state5.parse_line("0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test2.sh");
602-
// state5.parse_line("0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test3.sh");
603-
// state5.parse_line("0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test4.sh");
604-
// state5.parse_line("0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test5.sh");
605-
// std::string ui5_1 = replace_ansi(render_state(state5, 64, 8), false);
606-
// // debug_print_ui(ui5_1);
607-
// assert(
608-
// ui5_1 == "\
609-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test1.sh \n\
610-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test2.sh \n\
611-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test3.sh \n\
612-
// cronedit <arrow keys> move <s> save and quit <q> quit <enter> edit minute \n\
613-
// <n> new <c> comment <d> duplicate <r> remove \n\n\
614-
// ");
615-
// state5.on_key_down();
616-
// std::string ui5_2 = replace_ansi(render_state(state5, 64, 8), false);
617-
// // debug_print_ui(ui5_2);
618-
// assert(
619-
// ui5_2 == "\
620-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test1.sh \n\
621-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test2.sh \n\
622-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test3.sh \n\
623-
// cronedit <arrow keys> move <s> save and quit <q> quit <enter> edit minute \n\
624-
// <n> new <c> comment <d> duplicate <r> remove \n\n\
625-
// ");
626-
// state5.on_key_down();
627-
// std::string ui5_3 = replace_ansi(render_state(state5, 64, 8), false);
628-
// // debug_print_ui(ui5_3);
629-
// assert(
630-
// ui5_3 == "\
631-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test2.sh \n\
632-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test3.sh \n\
633-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test4.sh \n\
634-
// cronedit <arrow keys> move <s> save and quit <q> quit <enter> edit minute \n\
635-
// <n> new <c> comment <d> duplicate <r> remove \n\n\
636-
// ");
637-
// state5.on_key_down();
638-
// std::string ui5_4 = replace_ansi(render_state(state5, 64, 8), false);
639-
// // debug_print_ui(ui5_4);
640-
// assert(
641-
// ui5_4 == "\
642-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test3.sh \n\
643-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test4.sh \n\
644-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test5.sh \n\
645-
// cronedit <arrow keys> move <s> save and quit <q> quit <enter> edit minute \n\
646-
// <n> new <c> comment <d> duplicate <r> remove \n\n\
647-
// ");
648-
// state5.on_key_down();
649-
// std::string ui5_5 = replace_ansi(render_state(state5, 64, 8), false);
650-
// debug_print_ui(ui5_5);
651-
// assert(
652-
// ui5_5 == "\
653-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test3.sh \n\
654-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test4.sh \n\
655-
// | > 0 * * * * bash /path/to/very/long/path/yes/must/be/over/65/or/something/test5.sh \n\
656-
// cronedit <arrow keys> move <s> save and quit <q> quit <enter> edit minute \n\
657-
// <n> new <c> comment <d> duplicate <r> remove \n\n\
658-
// ");
659-
660567
std::cout << "PASS" << std::endl;
661568
}

0 commit comments

Comments
 (0)