Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
trs
Commits
d2ffd580
Commit
d2ffd580
authored
Nov 17, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed unit tests broken due to rebase on stable branch
parent
6402d3f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/test_parser.py
tests/test_parser.py
+4
-4
No files found.
tests/test_parser.py
View file @
d2ffd580
...
...
@@ -92,7 +92,7 @@ class TestParser(RulesTestCase):
x
=
tree
(
'x'
)
self
.
assertEqual
(
tree
(
'sin x'
),
sin
(
x
))
self
.
assertEqual
(
tree
(
'sin 2 x'
),
sin
(
2
)
*
x
)
# FIXME: correct?
self
.
assertEqual
(
tree
(
'sin 2 x'
),
sin
(
2
)
*
x
)
self
.
assertEqual
(
tree
(
'sin x ^ 2'
),
sin
(
x
**
2
))
self
.
assertEqual
(
tree
(
'sin^2 x'
),
sin
(
x
)
**
2
)
...
...
@@ -101,12 +101,12 @@ class TestParser(RulesTestCase):
self
.
assertEqual
(
tree
(
'sin cos x'
),
sin
(
cos
(
x
)))
self
.
assertEqual
(
tree
(
'sin cos x ^ 2'
),
sin
(
cos
(
x
**
2
)))
self
.
assertEqual
(
tree
(
'sin cos(x) ^ 2'
),
sin
(
cos
(
x
**
2
)))
self
.
assertEqual
(
tree
(
'sin (cos x) ^ 2'
),
sin
(
cos
(
x
)
**
2
))
self
.
assertEqual
(
tree
(
'sin cos(x) ^ 2'
),
sin
(
cos
(
x
)
**
2
))
self
.
assertEqual
(
tree
(
'sin (cos x) ^ 2'
),
sin
(
cos
(
x
))
**
2
)
self
.
assertEqual
(
tree
(
'sin (cos x) ^ 2'
),
sin
(
cos
(
x
))
**
2
)
self
.
assertEqual
(
tree
(
'sin((cos x) ^ 2)'
),
sin
(
cos
(
x
)
**
2
))
def
test_brackets
(
self
):
self
.
assertEqual
(
*
tree
(
'[x], x'
))
self
.
assertEqual
(
*
tree
(
'[x], (x)'
))
...
...
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