Skip to content

Commit

Permalink
Tests: Added --language for patterns tests (#2929)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaKXz authored Jun 3, 2021
1 parent f3dd72c commit a62ef79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pattern-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const { visitRegExpAST } = require('regexpp');
const { transform, combineTransformers, getIntersectionWordSets, JS, Words, NFA, Transformers } = require('refa');
const scslre = require('scslre');
const path = require('path');
const { argv } = require('yargs');

/**
* A map from language id to a list of code snippets in that language.
Expand Down Expand Up @@ -38,7 +39,7 @@ for (const languageIdentifier in testSuite) {


for (const lang in languages) {
if (lang === 'meta') {
if (lang === 'meta' || (!!argv.language && lang !== argv.language)) {
continue;
}

Expand Down

0 comments on commit a62ef79

Please sign in to comment.