Adds Parse Tree Verification Tests

Ported from: 326b947b55
This commit is contained in:
Bruce Markham
2020-04-04 15:24:48 -04:00
parent e10a1d3fde
commit 83395142bf
10 changed files with 250 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { File } from './support/infrastructure/File';
import scanAndValidateParseTrees from './support/scanAndValidateParseTrees';
const INPUT_DIRECTORY: File = new File(__dirname, "../proleap-vb6/src/test/resources");
const DIRECTORIES_EXCLUDED: File[] = [ new File(INPUT_DIRECTORY.getAbsolutePath(), "io/proleap/vb6/asg") ];
scanAndValidateParseTrees(INPUT_DIRECTORY, (directory) => Boolean(DIRECTORIES_EXCLUDED.find(d => d.equals(directory))));