Property definitions

markdown2 $ TestCase :: defaultinit
# A Nitunit test case
class TestCase

	# Test method name
	var test_name: String

	# Markdown input
	var markdown: String

	# Expected html output
	var html: String

	# Render the test case as a Nit string
	fun render: String do
		var tpl = new Template
		tpl.addn "\n\tfun {test_name} is test do"
		tpl.addn "\t\tvar md = \"\"\"{markdown}\"\"\""
		tpl.addn "\t\tvar html = \"\"\"{html}\"\"\""
		tpl.addn "\t\tassert md_to_html(md) == html"
		tpl.addn "\tend"
		return tpl.write_to_string
	end
end
lib/markdown2/tests/commonmark_gen.nit:221,1--243,3