diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2022-11-26 09:59:55 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2022-11-26 10:04:35 +0000 |
commit | ecf05445b9317d15dc5336230dbf55d6d18597b0 (patch) | |
tree | 34ee294756025a9622c72faa52eee2fed7beda19 /Examples | |
parent | 15692f0e89a75131a56732b828ba88a82fa67203 (diff) | |
download | swig-ecf05445b9317d15dc5336230dbf55d6d18597b0.tar.gz |
Test cases fix
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/test-suite/cpp11_template_parameters_decltype.i | 2 | ||||
-rw-r--r-- | Examples/test-suite/python/cpp11_decltype_runme.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Examples/test-suite/cpp11_template_parameters_decltype.i b/Examples/test-suite/cpp11_template_parameters_decltype.i index ab2c3e4fc..1d00124f1 100644 --- a/Examples/test-suite/cpp11_template_parameters_decltype.i +++ b/Examples/test-suite/cpp11_template_parameters_decltype.i @@ -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) {} diff --git a/Examples/test-suite/python/cpp11_decltype_runme.py b/Examples/test-suite/python/cpp11_decltype_runme.py index 436443988..82fdcd771 100644 --- a/Examples/test-suite/python/cpp11_decltype_runme.py +++ b/Examples/test-suite/python/cpp11_decltype_runme.py @@ -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.") |