Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
graph_drawing
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
graph_drawing
Commits
dd15ea76
Commit
dd15ea76
authored
Nov 17, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied pep8
parent
c8ecf708
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tests/test_line.py
tests/test_line.py
+4
-2
No files found.
tests/test_line.py
View file @
dd15ea76
...
@@ -340,7 +340,10 @@ class TestLine(unittest.TestCase):
...
@@ -340,7 +340,10 @@ class TestLine(unittest.TestCase):
def
test_preprocess_str_exp
(
self
):
def
test_preprocess_str_exp
(
self
):
root
=
N
(
'-'
,
L
(
1
))
root
=
N
(
'-'
,
L
(
1
))
def
addbrackets
(
self
):
self
[
0
]
=
N
(
'[]'
,
self
[
0
])
def
addbrackets
(
self
):
self
[
0
]
=
N
(
'[]'
,
self
[
0
])
root
.
preprocess_str_exp
=
new
.
instancemethod
(
addbrackets
,
root
)
root
.
preprocess_str_exp
=
new
.
instancemethod
(
addbrackets
,
root
)
self
.
assertEquals
(
generate_line
(
root
),
'-[1]'
)
self
.
assertEquals
(
generate_line
(
root
),
'-[1]'
)
...
@@ -356,4 +359,3 @@ class TestLine(unittest.TestCase):
...
@@ -356,4 +359,3 @@ class TestLine(unittest.TestCase):
root
=
N
(
'*'
,
N
(
'*'
,
L
(
2
),
L
(
'b'
)),
-
N
(
'*'
,
L
(
3
),
L
(
'b'
)))
root
=
N
(
'*'
,
N
(
'*'
,
L
(
2
),
L
(
'b'
)),
-
N
(
'*'
,
L
(
3
),
L
(
'b'
)))
self
.
assertEquals
(
generate_line
(
root
),
'2b * -3b'
)
self
.
assertEquals
(
generate_line
(
root
),
'2b * -3b'
)
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