-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from mopichalova/89-complexes-in-abstr-seq
enable direct usage of complexes
- Loading branch information
Showing
4 changed files
with
48 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#! rules | ||
S{i}:A():A2::cell => A()::cell | ||
|
||
#! complexes | ||
A2 = A().A() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#! rules | ||
S{i}:A():A().A()::cell => A()::cell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import pytest | ||
|
||
from Testing.models.get_model_str import get_model_str | ||
import Testing.objects_testing as objects | ||
|
||
|
||
def test_complexes_in_abstract_sequence(): | ||
# is allowed | ||
model = get_model_str("model_cmplx_in_abstr_seq1") | ||
ret1 = objects.model_parser.parse(model) | ||
assert ret1.success | ||
|
||
# should be allowed | ||
model = get_model_str("model_cmplx_in_abstr_seq2") | ||
ret2 = objects.model_parser.parse(model) | ||
assert ret2.success | ||
assert ret1.data == ret2.data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters