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
bd1b0a53
Commit
bd1b0a53
authored
Mar 14, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied newest multiplication sign omission rules to existing unit tests.
parent
08f8382f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
external/graph_drawing
external/graph_drawing
+1
-1
tests/test_leiden_oefenopgave.py
tests/test_leiden_oefenopgave.py
+7
-7
tests/test_leiden_oefenopgave_v12.py
tests/test_leiden_oefenopgave_v12.py
+3
-3
No files found.
graph_drawing
@
c0a73ab4
Subproject commit
01cf1342c34b470dfe36d72bb292aab564d28e3e
Subproject commit
c0a73ab43d1ef2ffdb1f1177afb006a983978150
tests/test_leiden_oefenopgave.py
View file @
bd1b0a53
...
...
@@ -35,12 +35,12 @@ class TestLeidenOefenopgave(TestCase):
'(x ^ 2 + (1 + 1)x + 1 * 1)(x + 1)'
,
'(x ^ 2 + 2x + 1 * 1)(x + 1)'
,
'(x ^ 2 + 2x + 1)(x + 1)'
,
'(x ^ 2 + 2x)x + (x ^ 2 + 2x)
*
1 + 1x + 1 * 1'
,
'xx ^ 2 + x * 2x + (x ^ 2 + 2x)
*
1 + 1x + 1 * 1'
,
'x ^ (1 + 2) + x * 2x + (x ^ 2 + 2x)
*
1 + 1x + 1 * 1'
,
'x ^ 3 + x * 2x + (x ^ 2 + 2x)
*
1 + 1x + 1 * 1'
,
'x ^ 3 + x ^ (1 + 1)
* 2 + (x ^ 2 + 2x) *
1 + 1x + 1 * 1'
,
'x ^ 3 + x ^ 2 * 2 + (x ^ 2 + 2x)
*
1 + 1x + 1 * 1'
,
'(x ^ 2 + 2x)x + (x ^ 2 + 2x)1 + 1x + 1 * 1'
,
'xx ^ 2 + x * 2x + (x ^ 2 + 2x)1 + 1x + 1 * 1'
,
'x ^ (1 + 2) + x * 2x + (x ^ 2 + 2x)1 + 1x + 1 * 1'
,
'x ^ 3 + x * 2x + (x ^ 2 + 2x)1 + 1x + 1 * 1'
,
'x ^ 3 + x ^ (1 + 1)
2 + (x ^ 2 + 2x)
1 + 1x + 1 * 1'
,
'x ^ 3 + x ^ 2 * 2 + (x ^ 2 + 2x)1 + 1x + 1 * 1'
,
'x ^ 3 + x ^ 2 * 2 + 1x ^ 2 + 1 * 2x + 1x + 1 * 1'
,
'x ^ 3 + x ^ 2 * 2 + x ^ 2 + 1 * 2x + 1x + 1 * 1'
,
'x ^ 3 + (2 + 1)x ^ 2 + 1 * 2x + 1x + 1 * 1'
,
...
...
@@ -144,7 +144,7 @@ class TestLeidenOefenopgave(TestCase):
'(22 - 28) / 77'
,
'-6 / 77'
])
def
test_4_3
(
self
):
self
.
assertRewrite
([
'(7/3)
*
(3/5)'
,
self
.
assertRewrite
([
'(7/3)(3/5)'
,
'7 * 3 / (3 * 5)'
,
'21 / (3 * 5)'
,
'21 / 15'
,
...
...
tests/test_leiden_oefenopgave_v12.py
View file @
bd1b0a53
...
...
@@ -32,16 +32,16 @@ class TestLeidenOefenopgaveV12(TestCase):
'(-72x ^ 2 - -48x + 8 * 6x + 8 * -4)x'
,
'(-72x ^ 2 + 48x + 8 * 6x + 8 * -4)x'
,
'(-72x ^ 2 + 48x + 48x + 8 * -4)x'
,
'(-72x ^ 2 + (1 + 1)
*
48x + 8 * -4)x'
,
'(-72x ^ 2 + (1 + 1)48x + 8 * -4)x'
,
'(-72x ^ 2 + 2 * 48x + 8 * -4)x'
,
'(-72x ^ 2 + 96x + 8 * -4)x'
,
'(-72x ^ 2 + 96x - 32)x'
,
'x(-72x ^ 2 + 96x) + x * -32'
,
'x * -72x ^ 2 + x * 96x + x * -32'
,
'-x * 72x ^ 2 + x * 96x + x * -32'
,
'-x ^ (1 + 2)
*
72 + x * 96x + x * -32'
,
'-x ^ (1 + 2)72 + x * 96x + x * -32'
,
'-x ^ 3 * 72 + x * 96x + x * -32'
,
'-x ^ 3 * 72 + x ^ (1 + 1)
*
96 + x * -32'
,
'-x ^ 3 * 72 + x ^ (1 + 1)96 + x * -32'
,
'-x ^ 3 * 72 + x ^ 2 * 96 + x * -32'
,
'-x ^ 3 * 72 + x ^ 2 * 96 - x * 32'
,
'72 * -x ^ 3 + x ^ 2 * 96 - x * 32'
,
...
...
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