D-Bus: Fix signals with string array parameters in dynamic clients
[vala-lang.git] / tests / basic-types / strings.vala
blob2d7df015d58585c8a35b60d517e36870e45fb8a6
1 void test_string () {
2 // declaration and initialization
3 string s = "hello";
4 assert (s == "hello");
6 // assignment
7 s = "world";
8 assert (s == "world");
10 // access
11 string t = s;
12 assert (t == "world");
14 // +
15 s = "hello" + "world";
16 assert (s == "helloworld");
18 // equality and relational
19 s = "hello";
20 assert (s == "hello");
21 assert (s != "world");
22 assert (s < "i");
23 assert (!(s < "g"));
24 assert (s <= "hello");
25 assert (!(s <= "g"));
26 assert (s >= "hello");
27 assert (!(s >= "i"));
28 assert (s > "g");
29 assert (!(s > "i"));
32 void main () {
33 test_string ();