Added two very simple tests for configitem

This commit is contained in:
Simeon Voelkel 2008-08-13 08:35:31 +02:00
parent bd2cc4a026
commit a8a186bb93
2 changed files with 28 additions and 1 deletions

View file

@ -135,3 +135,8 @@ END
PLANNED "bool set" <<END
END
TEST "create configitem with empty line" empty_line_configitem <<END
END
TEST "create configitem with blank line" blank_line_configitem <<END
END

View file

@ -1,8 +1,9 @@
/*
test-filedescriptors.c
test-config.c - test the config system
Copyright (C) Lumiera.org
2008, Christian Thaeter <ct@pipapo.org>
Simeon Voelkel <simeon_voelkel@arcor.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@ -21,6 +22,7 @@
#include "lib/safeclib.h"
#include "backend/config.h"
#include "backend/configitem.h"
#include "tests/test.h"
@ -125,5 +127,25 @@ TEST ("word_get")
lumiera_config_destroy ();
}
TEST ("empty_line_configitem")
{
LumieraConfigitem item;
item = lumiera_configitem_new ( "" );
lumiera_configitem_delete(item);
item = NULL;
}
TEST ("blank_line_configitem")
{
LumieraConfigitem item;
item = lumiera_configitem_new ( " " );
lumiera_configitem_delete(item);
item = NULL;
}
TESTS_END