Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PPP-libmodule-Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
PPP-libmodule-Python
Commits
a9bc70fb
Commit
a9bc70fb
authored
9 years ago
by
Valentin Lorentz
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests to work with inverse predicates.
parent
ec226ed6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_shortcuts.py
+3
-0
3 additions, 0 deletions
tests/test_shortcuts.py
with
3 additions
and
0 deletions
tests/test_shortcuts.py
+
3
−
0
View file @
a9bc70fb
...
...
@@ -5,6 +5,7 @@ from ppp_libmodule import shortcuts
from
ppp_datamodel.nodes
import
Triple
as
T
from
ppp_datamodel.nodes
import
Missing
as
M
from
ppp_datamodel.nodes
import
Missing
as
R
from
ppp_datamodel.nodes
import
List
as
L
from
ppp_datamodel.communication
import
Response
,
TraceItem
def
predicate
(
node
):
...
...
@@ -14,6 +15,8 @@ def predicate(node):
return
R
(
'
bar
'
)
elif
node
==
M
():
return
node
elif
node
==
L
([]):
return
node
else
:
assert
False
,
node
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment