projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofp-util: Allow decoding of Open Flow 1.2 Port Mod Message
[openvswitch]
/
tests
/
test-list.c
diff --git
a/tests/test-list.c
b/tests/test-list.c
index 5e62e0c00b3e7ef0ab9cc4b818c94a8efec3146d..50748184af2ce45a78bb85f8ea1df7d0e0841e56 100644
(file)
--- a/
tests/test-list.c
+++ b/
tests/test-list.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 2008, 2009, 2010
Nicira Networks
.
+ * Copyright (c) 2008, 2009, 2010
, 2011 Nicira, Inc
.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-73,6
+73,8
@@
check_list(struct list *list, const int values[], size_t n)
assert(i == n);
assert(list_is_empty(list) == !n);
assert(i == n);
assert(list_is_empty(list) == !n);
+ assert(list_is_singleton(list) == (n == 1));
+ assert(list_is_short(list) == (n < 2));
assert(list_size(list) == n);
}
assert(list_size(list) == n);
}