/***
This file is part of systemd
Copyright 2014 Zbigniew Jędrzejewski-Szmek
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "set.h"
static void test_set_steal_first(void) {
char *val;
m = set_new(&string_hash_ops);
assert_se(m);
while ((val = set_steal_first(m)))
assert_se(set_isempty(m));
}
static void test_set_put(void) {
m = set_new(&string_hash_ops);
assert_se(m);
}
test_set_put();
return 0;
}