Browse Source

Fixing false positive failed tests

Sebastien Ros 8 years ago
parent
commit
3580b5d82c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Jint.Tests.Ecma/EcmaTest.cs

+ 1 - 2
Jint.Tests.Ecma/EcmaTest.cs

@@ -76,8 +76,6 @@ namespace Jint.Tests.Ecma
         [MemberData(nameof(SourceFiles), "TestCases")]
         [MemberData(nameof(SourceFiles), "TestCases")]
         protected void RunTest(string sourceFilename)
         protected void RunTest(string sourceFilename)
         {
         {
-            var negative = Path.GetFileNameWithoutExtension(sourceFilename).EndsWith("gs");
-
             var fullName = Path.Combine(BasePath, sourceFilename);
             var fullName = Path.Combine(BasePath, sourceFilename);
             if (!File.Exists(fullName))
             if (!File.Exists(fullName))
             {
             {
@@ -85,6 +83,7 @@ namespace Jint.Tests.Ecma
             }
             }
 
 
             string code = File.ReadAllText(fullName);
             string code = File.ReadAllText(fullName);
+            var negative = code.Contains("@negative");
 
 
             RunTestCode(code, negative);
             RunTestCode(code, negative);