Test cases fix

This commit is contained in:
William S Fulton 2022-11-26 09:59:55 +00:00
parent 15692f0e89
commit ecf05445b9
2 changed files with 5 additions and 5 deletions

View File

@ -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) {}

View File

@ -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.")