Commit c7702959 authored by Stefan Behnel's avatar Stefan Behnel

Fix more tests: Correct the source character position of name nodes to improve...

Fix more tests: Correct the source character position of name nodes to improve error reporting (previously reported the character position *behind* the name).
parent 75aab8fb
...@@ -24,8 +24,8 @@ def main(): ...@@ -24,8 +24,8 @@ def main():
_ERRORS = """ _ERRORS = """
17:28: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. 17:25: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy.
18:28: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. 18:25: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy.
19:31: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. 19:28: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy.
19:36: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy. 19:33: Cannot pass Python object as C++ data structure reference (vector[int] &), will pass by copy.
""" """
...@@ -15,5 +15,5 @@ def pass_py_obj_as_cpp_cont_ref(): ...@@ -15,5 +15,5 @@ def pass_py_obj_as_cpp_cont_ref():
_ERRORS = """ _ERRORS = """
14:33: Cannot pass Python object as C++ data structure reference (set[int] &), will pass by copy. 14:22: Cannot pass Python object as C++ data structure reference (set[int] &), will pass by copy.
""" """
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment