summaryrefslogtreecommitdiff
path: root/Examples/test-suite/d/li_std_string_runme.2.d
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/d/li_std_string_runme.2.d')
-rw-r--r--Examples/test-suite/d/li_std_string_runme.2.d7
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) {