Skip to content

Commit c27cb06

Browse files
committed
Excluded module_recursion.scad example as it does not create a 3D output
1 parent b0c35ee commit c27cb06

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/examples.test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,23 @@ const sets = [
1010
"Advanced",
1111
"Parametric",
1212
];
13+
const exclude = [
14+
"Advanced: module_recursion.scad"
15+
]
1316

1417
const examples = JSON.parse(
1518
await Deno.readTextFile(join(exampleDir, "examples.json")),
1619
);
1720

1821
for (const set of sets) {
1922
for (const file of examples[set]) {
23+
const name = `${set}: ${file}`;
24+
if(exclude.indexOf(name) != -1) {
25+
continue;
26+
}
27+
2028
Deno.test({
21-
name: `${set}: ${file}`,
29+
name,
2230
fn: () => runTest(file, join(exampleDir, set)),
2331
});
2432
}
@@ -30,6 +38,6 @@ async function runTest(entrypoint: string, directory: string) {
3038

3139
await loadTestFiles(instance, directory);
3240

33-
const code = instance.callMain([entrypoint, "-o", "out.stl"]);
41+
const code = instance.callMain([entrypoint, "--enable=roof", "-o", "out.stl"]);
3442
assertEquals(0, code);
3543
}

0 commit comments

Comments
 (0)