File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,6 @@ int main(string[] args)
113
113
return 1 ;
114
114
}
115
115
116
- // Find all examples in the specification
117
- alias findExamples = (file, ddocKey) => file
118
- .readText
119
- .findDdocMacro(ddocKey)
120
- .map! ddocMacroToCode;
121
-
122
116
alias SpecType = Tuple ! (string , " key" , CompileConfig.TestMode, " mode" );
123
117
auto specTypes = [
124
118
SpecType(" $(SPEC_RUNNABLE_EXAMPLE_COMPILE" , CompileConfig.TestMode.compile),
@@ -139,7 +133,12 @@ int main(string[] args)
139
133
modImport = modImport.findSplitBefore(dirSeparator ~ " package" )[0 ];
140
134
modImport = modImport.replace(dirSeparator, " ." );
141
135
}
142
- auto allTests = specTypes.map! (c => findExamples(file, c.key)
136
+ const text = file.readText;
137
+ // Find all examples in the specification
138
+ alias findExamples = (ddocKey) => text
139
+ .findDdocMacro(ddocKey)
140
+ .map! ddocMacroToCode;
141
+ auto allTests = specTypes.map! (c => findExamples(c.key)
143
142
.map! (e => compileAndCheck(e, CompileConfig(c.mode), modImport)))
144
143
.joiner;
145
144
if (! allTests.empty)
You can’t perform that action at this time.
0 commit comments