nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: update most tools to new constructors
[nit.git]
/
src
/
testing
/
testing_doc.nit
diff --git
a/src/testing/testing_doc.nit
b/src/testing/testing_doc.nit
index
566e014
..
42d2b0c
100644
(file)
--- a/
src/testing/testing_doc.nit
+++ b/
src/testing/testing_doc.nit
@@
-22,24
+22,15
@@
intrude import markdown
class NitUnitExecutor
super Doc2Mdwn
class NitUnitExecutor
super Doc2Mdwn
- # The module to import
- var mmodule: MModule
-
# The prefix of the generated Nit source-file
var prefix: String
# The prefix of the generated Nit source-file
var prefix: String
+ # The module to import
+ var mmodule: MModule
+
# The XML node associated to the module
var testsuite: HTMLTag
# The XML node associated to the module
var testsuite: HTMLTag
- # Initialize a new e
- init(toolcontext: ToolContext, prefix: String, mmodule: MModule, testsuite: HTMLTag)
- do
- super(toolcontext)
- self.prefix = prefix
- self.mmodule = mmodule
- self.testsuite = testsuite
- end
-
# All blocks of code from a same `ADoc`
var blocks = new Array[Array[String]]
# All blocks of code from a same `ADoc`
var blocks = new Array[Array[String]]
@@
-80,7
+71,7
@@
class NitUnitExecutor
end
# The associated node to localize warnings
end
# The associated node to localize warnings
- var ndoc: nullable ADoc
+ var ndoc: nullable ADoc = null
# used to generate distinct names
var cpt = 0
# used to generate distinct names
var cpt = 0