test suite test markup text
import ideal • machine • channels • string writer
test case test writer trivial()
the writer : string writer • new()
assert "<p>\n foo\n</p>\n" == the writer • elements()
test case test quoted()
the writer : string writer • new()
the formatter • write("AT&T <etc.> q1:' q2:\"")
assert "AT&T <etc.> q1:' q2:"" == the writer • elements()
test case test writer indent()
the writer : string writer • new()
assert "<p>\n foo\n</p>\n<indent>\n bar\n</indent>\n" == the writer • elements()
test case test attribute()
the writer : string writer • new()
assert "<p name='foo'>\n bar\n</p>\n" == the writer • elements()
test case test self closing tag()
the writer : string writer • new()
the formatter • write("foo")
the formatter • write(base element • new(text library • BR, text library • CLEAR, "all", missing • instance))
the formatter • write("bar\n")
assert "foo<br clear='all' />\nbar\n" == the writer • elements()
test case test writer fragment()
the writer : string writer • new()
the formatter • write("one")
the formatter • write("two")
assert "one·two" == the writer • elements()