Test cases fix
This commit is contained in:
parent
15692f0e89
commit
ecf05445b9
2 changed files with 5 additions and 5 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
%inline %{
|
%inline %{
|
||||||
// Github issue #1590
|
// Github issue #1590
|
||||||
struct Converter {
|
struct Converter {
|
||||||
std::string to_json() const {}
|
std::string to_json() const { return std::string(); }
|
||||||
};
|
};
|
||||||
struct Json {
|
struct Json {
|
||||||
Json(std::string s) {}
|
Json(std::string s) {}
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ a.j = 10
|
||||||
if a.j != 10:
|
if a.j != 10:
|
||||||
raise RuntimeError("Assignment to a.j failed.")
|
raise RuntimeError("Assignment to a.j failed.")
|
||||||
|
|
||||||
b = a.get_int(5)
|
b = a.get_number(5)
|
||||||
if b != 10:
|
if b != 10:
|
||||||
raise RuntimeError("get_int(5) should return 10.")
|
raise RuntimeError("get_number(5) should return 10.")
|
||||||
|
|
||||||
b = a.get_int(6)
|
b = a.get_number(6)
|
||||||
if b != 0:
|
if b != 0:
|
||||||
raise RuntimeError("get_int(6) should return 0.")
|
raise RuntimeError("get_number(6) should return 0.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue