markdown2 :: TestClass :: defaultinit
markdown2 :: TestClass :: test_cases=
Test cases in this test classmarkdown2 :: TestClass :: test_class_name=
Test class namecore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
markdown2 :: TestClass :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).markdown2 :: TestClass :: test_cases=
Test cases in this test classmarkdown2 :: TestClass :: test_class_name=
Test class name
# A Nitunit test class
class TestClass
# Test class name
var test_class_name: String
# Test cases in this test class
var test_cases = new Array[TestCase]
# Render the test class as a Nit string
fun render: String do
var tpl = new Template
tpl.addn "\nclass {test_class_name}"
tpl.addn "\tsuper TestMarkdownHtml"
tpl.addn "\ttest"
for test_case in test_cases do
tpl.add test_case.render
end
tpl.addn "end"
return tpl.write_to_string
end
end
lib/markdown2/tests/commonmark_gen.nit:198,1--219,3