Skip to content

Commit 82c0472

Browse files
committed
Let examples test and tools only handle .wy files
1 parent 506f79a commit 82c0472

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/examples.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function runExample(lang, name, options = {}) {
5151
}
5252

5353
function runAll(lang, options) {
54-
var files = fs.readdirSync(exampleDir);
54+
var files = fs.readdirSync(exampleDir).filter(x => x.endsWith(".wy"));
5555
for (const file of files) {
5656
const filename = file.split(".")[0];
5757
it(filename, () => runExample(lang, filename, options));

tools/make_ide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var execSync = require("child_process").execSync;
77
var parser = require("../src/parser");
88
var utils = require("./utils");
99

10-
var files = fs.readdirSync("../examples/").filter(x => !x.startsWith("."));
10+
var files = fs.readdirSync("../examples/").filter(x => x.endsWith(".wy"));
1111
var prgms = {};
1212
for (var i = 0; i < files.length; i++) {
1313
prgms[files[i].split(".")[0]] = fs

0 commit comments

Comments
 (0)