浏览代码

Fixing false positive failed tests

Sebastien Ros 9 年之前
父节点
当前提交
3580b5d82c
共有 1 个文件被更改,包括 1 次插入2 次删除
  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")]
         protected void RunTest(string sourceFilename)
         {
-            var negative = Path.GetFileNameWithoutExtension(sourceFilename).EndsWith("gs");
-
             var fullName = Path.Combine(BasePath, sourceFilename);
             if (!File.Exists(fullName))
             {
@@ -85,6 +83,7 @@ namespace Jint.Tests.Ecma
             }
 
             string code = File.ReadAllText(fullName);
+            var negative = code.Contains("@negative");
 
             RunTestCode(code, negative);