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
6029187f
Commit
6029187f
authored
Feb 27, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Equalized syntax over Leiden v12 unit tests.
parent
697592af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
tests/test_leiden_oefenopgave_v12.py
tests/test_leiden_oefenopgave_v12.py
+16
-10
No files found.
tests/test_leiden_oefenopgave_v12.py
View file @
6029187f
...
...
@@ -52,7 +52,8 @@ class TestLeidenOefenopgaveV12(TestCase):
])
def
test_2_a
(
self
):
self
.
assertRewrite
([
'(a2b^-1)^3(ab2)'
,
self
.
assertRewrite
([
'(a2b^-1)^3(ab2)'
,
'(a ^ 2 * (1 / b ^ 1)) ^ 3 * ab ^ 2'
,
'(a ^ 2 * (1 / b)) ^ 3 * ab ^ 2'
,
'(a ^ 2) ^ 3 * (1 / b) ^ 3 * ab ^ 2'
,
...
...
@@ -60,28 +61,34 @@ class TestLeidenOefenopgaveV12(TestCase):
'a ^ 6 * (1 / b) ^ 3 * ab ^ 2'
,
'a ^ (6 + 1)(1 / b) ^ 3 * b ^ 2'
,
'a ^ 7 * (1 / b) ^ 3 * b ^ 2'
,
])
])
def
test_2_b
(
self
):
self
.
assertRewrite
([
'a3b2a3'
,
self
.
assertRewrite
([
'a3b2a3'
,
'a ^ (3 + 3)b ^ 2'
,
'a ^ 6 * b ^ 2'
])
'a ^ 6 * b ^ 2'
,
])
def
test_2_c
(
self
):
self
.
assertRewrite
([
'a5+a3'
,
'a ^ 5 + a ^ 3'
])
self
.
assertRewrite
([
'a5+a3'
,
'a ^ 5 + a ^ 3'
,
])
def
test_2_d
(
self
):
self
.
assertRewrite
([
'a2+a2'
,
self
.
assertRewrite
([
'a2+a2'
,
'(1 + 1)a ^ 2'
,
'2a ^ 2'
])
'2a ^ 2'
,
])
def
test_2_e
(
self
):
self
.
assertRewrite
([
'4b^-2'
,
'4(1 / b ^ 2)'
,
# FIXME: '4 * 1/b ^ 2',
])
])
def
test_2_f
(
self
):
self
.
assertRewrite
([
...
...
@@ -90,7 +97,6 @@ class TestLeidenOefenopgaveV12(TestCase):
'1 / 4 ^ 2 * b ^ -2'
,
'1 / 16 * b ^ -2'
,
'1 / 16 * (1 / b ^ 2)'
,
'1 / 16 * (1 / b ^ 2)'
,
'1 * 1 / (16b ^ 2)'
,
'1 / (16b ^ 2)'
,
])
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