mirror of https://github.com/swig/swig
Test cases fix
This commit is contained in:
parent
15692f0e89
commit
ecf05445b9
|
@ -18,7 +18,7 @@
|
|||
%inline %{
|
||||
// Github issue #1590
|
||||
struct Converter {
|
||||
std::string to_json() const {}
|
||||
std::string to_json() const { return std::string(); }
|
||||
};
|
||||
struct Json {
|
||||
Json(std::string s) {}
|
||||
|
|
|
@ -9,10 +9,10 @@ a.j = 10
|
|||
if a.j != 10:
|
||||
raise RuntimeError("Assignment to a.j failed.")
|
||||
|
||||
b = a.get_int(5)
|
||||
b = a.get_number(5)
|
||||
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:
|
||||
raise RuntimeError("get_int(6) should return 0.")
|
||||
raise RuntimeError("get_number(6) should return 0.")
|
||||
|
|
Loading…
Reference in New Issue