diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/sys/test_select.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/sys/test_select.rs b/test/sys/test_select.rs index c9331886..6b7eac9a 100644 --- a/test/sys/test_select.rs +++ b/test/sys/test_select.rs @@ -19,6 +19,16 @@ fn test_fdset() { for i in 0..FD_SETSIZE { assert!(!fd_set.contains(i)); } + + fd_set.insert(1); + fd_set.insert(FD_SETSIZE / 2); + fd_set.insert(FD_SETSIZE - 1); + + fd_set.clear(); + + for i in 0..FD_SETSIZE { + assert!(!fd_set.contains(i)); + } } #[test] |