Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mjtest
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ufebl
mjtest
Commits
9a47ba64
Commit
9a47ba64
authored
Nov 09, 2016
by
Johannes Bechberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved some semantic test cases into syntax folder
parent
ce8ea9af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mjtest/test/syntax_tests.py
mjtest/test/syntax_tests.py
+5
-3
No files found.
mjtest/test/syntax_tests.py
View file @
9a47ba64
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
else
:
self
.
_should_succeed
=
not
file
.
endswith
(
".invalid.mj"
)
def
should_succeed
(
self
)
->
bool
:
return
self
.
_should_succeed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment