Add missing option test
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
fbd25cac9f
commit
5d813c30d0
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue