Generate the Nitunit test files

Property definitions

markdown2 $ TestGenerator :: gen_tests
	# Generate the Nitunit test files
	fun gen_tests do
		var tests = load_tests

		for section, test_cases in tests do
			var test_file = new TestFile("test_commonmark_{strip_module_name(section)}")
			var test_class = new TestClass("TestCommonmark{strip_class_name(section)}")
			test_class.test_cases.add_all test_cases
			test_file.test_classes.add test_class
			test_file.save(output_dir)
		end
	end
lib/markdown2/tests/commonmark_gen.nit:92,2--103,4