1 # Copyright (C) 2004, Christian Thaeter <chth@gmx.net>
3 # This file is part of the MaLa extension Language.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License version 2 as
7 # published by the Free Software Foundation.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, contact me.
17 TESTING "mala stringlibrary test:" ./test-mala_strings
19 TEST "stringlib" <<END
20 TEST a = mala_string_new ("bar", test): .. OK
21 TEST b = mala_string_new ("baz", test): .. OK
22 TEST c = mala_string_new ("bar", test): .. OK
23 TEST d = mala_string_new ("bar", NULL): .. OK
24 TEST mala_stringbucket_erase (test): .. OK
25 TEST mala_string_free (a): .. OK
26 TEST mala_string_free (b): .. OK
27 TEST mala_string_free (c): .. OK
28 TEST mala_string_free (d): .. OK
29 TEST a = mala_string_new_print(NULL, "%d",1234): .. OK
30 TEST mala_string_compare (a, onetwothreefour) == 0: .. OK
31 TEST mala_string_length (a) == 4: .. OK
34 # arch-tag: 0487f096-1d68-42b5-80fe-1e6deea428a2