def test_background_in_row(): print() with Style(42): with box() as b: print("Test 4") b.sep() with Style(43): print("Test 4") b.sep() print("Test 4")
def test_colored_set_width_boxes(): print() with Style(39, 44), Box.thick(size=40): with Style(31, 42), box(size=20), Style(30): print("Test 17") with Style(30, 41), box(size=30), Style(39), box(), Style(30, 47): print("Test 17") with Style(33, 49), box(size=35), Style(39): print("Test 17")
def test_no_flush(): print() with Style(43): with box() as b: print("Test 2") b.sep() print("Test", end="") print(" 2")
def test_styled_sep_box(): print() with box() as b: print("Test 3") b.sep() with Style(30, 45): print("Test 3") b.sep() print("Test 3")
def test_nested_boxes_with_colors_and_rows(): print() with Style(31), Box.fancy(): with Style(35), box(), Style(32), Box.thick(), Style(30, 45): print("Test 14") with Style(33), Box.double(), Style(39): print("Test 14")
def test_colored_deeply_nested_boxes_with_separator(): print() with Style(31), Box.round() as b1, Style(39): print("Test 19") b1.sep() with Style(34), box() as b2, Style(39): print("Test 19") b2.sep() print("Test 19") b2.sep() with Style(33), box() as b3, Style(39): print("Test 19") b3.sep() print("Test 19") b1.sep() print("Test 19")
def test_colored_nested_boxes_with_separator(): print() with Style(31), Box.round(), Style(34), box() as b2, Style(39): print("Test 18") b2.sep() print("Test 18")
def test_colored_box_white_text(): print() with Style(31), box() as b, Style(39): print("Test 11") b.sep() print("Test 11")