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
441a1777
Commit
441a1777
authored
Jun 16, 2012
by
Taddeus Kroes
Committed by
Taddeüs Kroes
Sep 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some tests for definite integral bounds.
parent
e0a7b3a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tests/test_parser.py
tests/test_parser.py
+5
-1
No files found.
tests/test_parser.py
View file @
441a1777
...
@@ -171,10 +171,14 @@ class TestParser(RulesTestCase):
...
@@ -171,10 +171,14 @@ class TestParser(RulesTestCase):
self
.
assertEqual
(
tree
(
'int_-a^b x^2 dx'
),
integral
(
x
**
2
,
x
,
-
a
,
b
))
self
.
assertEqual
(
tree
(
'int_-a^b x^2 dx'
),
integral
(
x
**
2
,
x
,
-
a
,
b
))
def
test_indefinite_integral
(
self
):
def
test_indefinite_integral
(
self
):
x2
,
a
,
b
,
oo
=
tree
(
'x ^ 2, a, b, oo
'
)
x2
,
a
,
b
,
oo
,
l2
=
tree
(
'x ^ 2, a, b, oo, 2
'
)
self
.
assertEqual
(
tree
(
'(x ^ 2)_a'
),
indef
(
x2
,
a
,
oo
))
self
.
assertEqual
(
tree
(
'(x ^ 2)_a'
),
indef
(
x2
,
a
,
oo
))
self
.
assertEqual
(
tree
(
'(x ^ 2)_a^b'
),
indef
(
x2
,
a
,
b
))
self
.
assertEqual
(
tree
(
'(x ^ 2)_a^b'
),
indef
(
x2
,
a
,
b
))
self
.
assertEqual
(
tree
(
'(x ^ 2)_-a^b'
),
indef
(
x2
,
-
a
,
b
))
self
.
assertEqual
(
tree
(
'(x ^ 2)_-a^-b'
),
indef
(
x2
,
-
a
,
-
b
))
self
.
assertNotEqual
(
tree
(
'(x ^ 2)_-2a^b'
),
indef
(
x2
,
-
(
l2
*
a
),
b
))
self
.
assertEqual
(
tree
(
'(x ^ 2)_(-2a)^b'
),
indef
(
x2
,
-
(
l2
*
a
),
b
))
def
test_absolute_value
(
self
):
def
test_absolute_value
(
self
):
x
=
tree
(
'x'
)
x
=
tree
(
'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