diff --git a/Examples/test-suite/csharp/li_std_string_runme.cs b/Examples/test-suite/csharp/li_std_string_runme.cs index f87d8e75b..4c9d71384 100644 --- a/Examples/test-suite/csharp/li_std_string_runme.cs +++ b/Examples/test-suite/csharp/li_std_string_runme.cs @@ -76,6 +76,8 @@ public class runme li_std_string.GlobalString2 = s; if (li_std_string.GlobalString2 != s) throw new Exception("GlobalString2 test 2"); + if (li_std_string.ConstGlobalString != "const global string") + throw new Exception("ConstGlobalString test"); // Member variables Structure myStructure = new Structure(); @@ -84,11 +86,15 @@ public class runme myStructure.MemberString2 = s; if (myStructure.MemberString2 != s) throw new Exception("MemberString2 test 2"); + if (myStructure.ConstMemberString != "const member string") + throw new Exception("ConstMemberString test"); if (Structure.StaticMemberString2 != "static member string 2") throw new Exception("StaticMemberString2 test 1"); Structure.StaticMemberString2 = s; if (Structure.StaticMemberString2 != s) throw new Exception("StaticMemberString2 test 2"); + if (Structure.ConstStaticMemberString != "const static member string") + throw new Exception("ConstStaticMemberString test"); } } diff --git a/Examples/test-suite/java/li_std_string_runme.java b/Examples/test-suite/java/li_std_string_runme.java index 09e41ba6e..1ee2a23c5 100644 --- a/Examples/test-suite/java/li_std_string_runme.java +++ b/Examples/test-suite/java/li_std_string_runme.java @@ -84,6 +84,8 @@ public class li_std_string_runme { li_std_string.setGlobalString2(s); if (!li_std_string.getGlobalString2().equals(s)) throw new Exception("GlobalString2 test 2"); + if (!li_std_string.getConstGlobalString().equals("const global string")) + throw new Exception("ConstGlobalString test"); // Member variables Structure myStructure = new Structure(); @@ -92,11 +94,15 @@ public class li_std_string_runme { myStructure.setMemberString2(s); if (!myStructure.getMemberString2().equals(s)) throw new Exception("MemberString2 test 2"); + if (!myStructure.getConstMemberString().equals("const member string")) + throw new Exception("ConstMemberString test"); if (!Structure.getStaticMemberString2().equals("static member string 2")) throw new Exception("StaticMemberString2 test 1"); Structure.setStaticMemberString2(s); if (!Structure.getStaticMemberString2().equals(s)) throw new Exception("StaticMemberString2 test 2"); + if (!Structure.getConstStaticMemberString().equals("const static member string")) + throw new Exception("ConstStaticMemberString test"); } }