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
1c9969fd
Commit
1c9969fd
authored
Jan 26, 2012
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed explicit negation node from test cases.
parent
fb5adcac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
tests/test_b1_ch10.py
tests/test_b1_ch10.py
+1
-6
tests/test_calc.py
tests/test_calc.py
+2
-2
No files found.
tests/test_b1_ch10.py
View file @
1c9969fd
...
...
@@ -28,12 +28,7 @@ class TestB1Ch10(unittest.TestCase):
)
),
(
'-x3*-2x5'
,
N
(
'*'
,
N
(
'*'
,
N
(
'-'
,
N
(
'^'
,
L
(
'x'
),
L
(
3
))),
N
(
'-'
,
L
(
2
))),
N
(
'^'
,
L
(
'x'
),
L
(
5
))
)
-
(
L
(
'x'
)
**
L
(
3
))
*
-
L
(
2
)
*
L
(
'x'
)
**
L
(
5
)
),
(
'(7x2y3)^2/(7x2y3)'
,
N
(
'/'
,
...
...
tests/test_calc.py
View file @
1c9969fd
...
...
@@ -24,7 +24,7 @@ class TestCalc(unittest.TestCase):
def
test_infinity
(
self
):
expressions
=
[(
'2^3000'
,
N
(
'^'
,
L
(
2
),
L
(
3000
))),
(
'2^-3000'
,
N
(
'^'
,
L
(
2
),
N
(
'-'
,
L
(
3000
)
)))]
(
'2^-3000'
,
N
(
'^'
,
L
(
2
),
-
L
(
3000
)))]
# ('2^99999999999', None),
# ('2^-99999999999', 0.0)]
...
...
@@ -70,7 +70,7 @@ class TestCalc(unittest.TestCase):
expressions
=
[
(
'a^b^c'
,
N
(
'^'
,
a
,
N
(
'^'
,
b
,
c
))),
(
'-1^b^c'
,
N
(
'-'
,
N
(
'^'
,
L
(
1
),
N
(
'^'
,
b
,
c
)
))),
(
'-1^b^c'
,
-
N
(
'^'
,
L
(
1
),
N
(
'^'
,
b
,
c
))),
(
'ab^c'
,
N
(
'*'
,
a
,
N
(
'^'
,
b
,
c
))),
(
'a(b)^c'
,
N
(
'*'
,
a
,
N
(
'^'
,
b
,
c
))),
(
'a(b+c)^(d+e)'
,
N
(
'*'
,
a
,
N
(
'^'
,
N
(
'+'
,
b
,
c
),
...
...
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