add more tests

This commit is contained in:
Hedy Li 2020-08-05 20:31:57 +08:00
parent fd76eba526
commit a04200b1ed
1 changed files with 2 additions and 0 deletions

View File

@ -50,8 +50,10 @@ def test_characters():
) )
console.rule(characters="+*") console.rule(characters="+*")
console.rule("foo", characters="+*") console.rule("foo", characters="+*")
console.print(Rule(characters=".,"))
expected = "+*+*+*+*+*+*+*+*\n" expected = "+*+*+*+*+*+*+*+*\n"
expected += "+*+*+ foo +*+*++\n" expected += "+*+*+ foo +*+*++\n"
expected += ".,.,.,.,.,.,.,.,\n"
assert console.file.getvalue() == expected assert console.file.getvalue() == expected