66
66
li_std_string.test_throw();
67
67
throw new Throwable("Test 5 failed");
68
68
} catch (RuntimeException e) {
69
if (!e.getMessage().equals("test_throw message"))
70
throw new Exception("Test 5 string check: " + e.getMessage());
71
73
li_std_string.test_const_reference_throw();
72
74
throw new Throwable("Test 6 failed");
73
75
} catch (RuntimeException e) {
76
if (!e.getMessage().equals("test_const_reference_throw message"))
77
throw new Exception("Test 6 string check: " + e.getMessage());
81
String s = "initial string";
82
if (!li_std_string.getGlobalString2().equals("global string 2"))
83
throw new Exception("GlobalString2 test 1");
84
li_std_string.setGlobalString2(s);
85
if (!li_std_string.getGlobalString2().equals(s))
86
throw new Exception("GlobalString2 test 2");
89
Structure myStructure = new Structure();
90
if (!myStructure.getMemberString2().equals("member string 2"))
91
throw new Exception("MemberString2 test 1");
92
myStructure.setMemberString2(s);
93
if (!myStructure.getMemberString2().equals(s))
94
throw new Exception("MemberString2 test 2");
96
if (!Structure.getStaticMemberString2().equals("static member string 2"))
97
throw new Exception("StaticMemberString2 test 1");
98
Structure.setStaticMemberString2(s);
99
if (!Structure.getStaticMemberString2().equals(s))
100
throw new Exception("StaticMemberString2 test 2");