Commit 9a47ba64 authored by Johannes Bechberger's avatar Johannes Bechberger
Browse files

Moved some semantic test cases into syntax folder

parent ce8ea9af
import shutil
from mjtest.environment import Environment, TestMode
from mjtest.environment import Environment, TestMode, TEST_MODES
from mjtest.test.tests import TestCase, BasicTestResult
from os import path
......@@ -11,8 +11,10 @@ class BasicSyntaxTest(TestCase):
def __init__(self, env: Environment, type: str, file: str):
super().__init__(env, type, file)
self._should_succeed = not file.endswith(".invalid.mj")
if type != self.MODE and TEST_MODES.index(type) > TEST_MODES.index(self.MODE):
self._should_succeed = True
self._should_succeed = not file.endswith(".invalid.mj")
def should_succeed(self) -> bool:
return self._should_succeed
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment