diff options
author | Olly Betts <olly@survex.com> | 2023-05-12 16:04:23 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2023-05-12 16:05:48 +1200 |
commit | a44a7de3481e5f59c08dd71ec89b30b7578a52b9 (patch) | |
tree | ac737b23240668d04e529d819a3c963ff0a10d63 /Examples/test-suite/d | |
parent | 1a31e9dc0cbcc458b241293a479123954f55f28c (diff) | |
download | swig-a44a7de3481e5f59c08dd71ec89b30b7578a52b9.tar.gz |
Expand li_std_string_runme.*
Add testing of the empty and null cases for all languages which
already have a runme.
Diffstat (limited to 'Examples/test-suite/d')
-rw-r--r-- | Examples/test-suite/d/li_std_string_runme.2.d | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Examples/test-suite/d/li_std_string_runme.2.d b/Examples/test-suite/d/li_std_string_runme.2.d index 395c2f7ff..f0d0fa84c 100644 --- a/Examples/test-suite/d/li_std_string_runme.2.d +++ b/Examples/test-suite/d/li_std_string_runme.2.d @@ -72,6 +72,13 @@ void main() { Structure.StaticMemberString2 = s; enforce(Structure.StaticMemberString2 == s, "StaticMemberString2 test 2"); enforce(Structure.ConstStaticMemberString == "const static member string", "ConstStaticMemberString test"); + + enforce(stdstring_empty() == "", "stdstring_empty test"); + enforce(c_empty() == "", "c_empty test"); + enforce(c_null() == null, "c_null test"); + enforce(get_null(c_null()) == null, "get_null c_null test"); + enforce(get_null(c_empty()) == null, "get_null c_empty test"); + enforce(get_null(stdstring_empty()) == null, "get_null stdstring_empty test"); } private void enforceThrows(void delegate() dg, string errorMessage) { |