Add some basic RC serialization tests

This commit is contained in:
Kovid Goyal
2022-08-17 08:40:57 +05:30
parent 4432c1a2ea
commit 33e16df586
7 changed files with 169 additions and 37 deletions

View File

@@ -13,6 +13,6 @@ func TestFormatLineWithIndent(t *testing.T) {
format_line_with_indent(&output, "testing \x1b[31mstyled\x1b[m", indent, 11)
expected := indent + "testing \n" + indent + "\x1b[31mstyled\x1b[m\n"
if output.String() != expected {
t.Errorf("%#v != %#v", expected, output.String())
t.Fatalf("%#v != %#v", expected, output.String())
}
}