Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
8529f2ae
Commit
8529f2ae
authored
Dec 27, 2017
by
kvukic
Committed by
Thomas Van Lenten
Dec 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved issue #3510. Malformed errorr messages replaced with meaningful description
parent
099d9975
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pddm_tests.py
objectivec/DevTools/pddm_tests.py
+3
-3
No files found.
objectivec/DevTools/pddm_tests.py
View file @
8529f2ae
...
...
@@ -311,7 +311,7 @@ foo(x, y)
mc
=
pddm
.
MacroCollection
(
f
)
try
:
result
=
mc
.
Expand
(
'foo(A,B)'
)
self
.
fail
(
'Should throw exception
, entry
%
d'
%
idx
)
self
.
fail
(
'Should throw exception
! Test failed to catch recursion.'
)
except
pddm
.
PDDMError
as
e
:
self
.
assertEqual
(
e
.
message
,
'Found macro recusion, invoking "foo(1, A)":
\n
...while expanding "bar(1, A)".
\n
...while expanding "foo(A,B)".'
)
...
...
@@ -483,7 +483,7 @@ foo
sf
=
pddm
.
SourceFile
(
f
)
try
:
sf
.
ProcessContent
()
self
.
fail
(
'Should throw exception
, entry
%
d'
%
idx
)
self
.
fail
(
'Should throw exception
! Test failed to catch macro parsing error.'
)
except
pddm
.
PDDMError
as
e
:
self
.
assertEqual
(
e
.
message
,
'Attempt to redefine macro: "PDDM-DEFINE mumble(x_)"
\n
'
...
...
@@ -503,7 +503,7 @@ foo
sf
=
pddm
.
SourceFile
(
f
)
try
:
sf
.
ProcessContent
()
self
.
fail
(
'Should throw exception
, entry
%
d'
%
idx
)
self
.
fail
(
'Should throw exception
! Test failed to catch expand error.'
)
except
pddm
.
PDDMError
as
e
:
self
.
assertEqual
(
e
.
message
,
'No macro named "foobar".
\n
'
...
...
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