From ee2ded5f49c091e06e828ab7b0c6ce3927f90ac5 Mon Sep 17 00:00:00 2001 From: Adam Simon Date: Fri, 17 May 2024 11:37:05 +0200 Subject: [PATCH] Remove duplicate test cases --- test/Acornima.Tests/ParserTests.ReservedWords.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/Acornima.Tests/ParserTests.ReservedWords.cs b/test/Acornima.Tests/ParserTests.ReservedWords.cs index 731d7d5..9f9a736 100644 --- a/test/Acornima.Tests/ParserTests.ReservedWords.cs +++ b/test/Acornima.Tests/ParserTests.ReservedWords.cs @@ -22,14 +22,13 @@ private static IEnumerable GetAllReservedWords() public static IEnumerable IsKeywordMatchesAcornImplData => from word in GetAllReservedWords() from ecmaVersion in new[] { EcmaVersion.ES3, EcmaVersion.ES5, EcmaVersion.ES6, EcmaVersion.Latest } - from isModule in new[] { false, true } select new object[] { word, ecmaVersion, ecmaVersion < EcmaVersion.ES6 && word is "export" or "import" // in these cases we deliberately deviate from the original acornjs implementation ? false - : AcornUtils.WordsRegexp(AcornIdentifier.Keywords[ecmaVersion >= EcmaVersion.ES6 ? "6" : isModule ? "5module" : "5"]).IsMatch(word) + : AcornUtils.WordsRegexp(AcornIdentifier.Keywords[ecmaVersion >= EcmaVersion.ES6 ? "6" : "5"]).IsMatch(word) }; [Theory]