Comparison

tests/test_core_configmanager.lua @ 3540:bc139431830b

Monster whitespace commit (beware the whitespace monster).
author Waqas Hussain <waqas20@gmail.com>
date Sat, 16 Oct 2010 23:00:42 +0500
parent 2923:b7049746bd29
child 5605:468d7a2f85ba
comparison
equal deleted inserted replaced
3539:8bbd965267b2 3540:bc139431830b
27 assert_equal(get("example.com", "undefined section", "testkey"), nil, "Defined host, undefined section"); 27 assert_equal(get("example.com", "undefined section", "testkey"), nil, "Defined host, undefined section");
28 end 28 end
29 29
30 function set(set, u) 30 function set(set, u)
31 assert_equal(set("*"), false, "Set with no section/key"); 31 assert_equal(set("*"), false, "Set with no section/key");
32 assert_equal(set("*", "set_test"), false, "Set with no key"); 32 assert_equal(set("*", "set_test"), false, "Set with no key");
33 33
34 assert_equal(set("*", "set_test", "testkey"), true, "Setting a nil global value"); 34 assert_equal(set("*", "set_test", "testkey"), true, "Setting a nil global value");
35 assert_equal(set("*", "set_test", "testkey", 123), true, "Setting a global value"); 35 assert_equal(set("*", "set_test", "testkey", 123), true, "Setting a global value");
36 end 36 end
37 37