Add missing option test

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-08-22 08:51:33 -07:00
parent fbd25cac9f
commit 5d813c30d0

View file

@ -67,6 +67,7 @@ static void tst4() {
opt = update(opt, "name", "Leo");
lean_assert(opt.size() == 3);
lean_assert(strcmp(opt.get_string("name", ""), "Leo") == 0);
lean_assert(strcmp(opt.get_string(name("name"), ""), "Leo") == 0);
lean_assert(strcmp(opt.get_string("name2", ""), "Leo") != 0);
lean_assert(strcmp(opt.get_string("name2", ""), "") == 0);
opt = update(opt, "name", "Soon Ho");