mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
13 lines
308 B
V
13 lines
308 B
V
module picoev
|
|
|
|
fn test_if_all_file_descriptors_are_properly_initialized() {
|
|
mut pv := &Picoev{}
|
|
pv.init()
|
|
|
|
for i in 0 .. max_fds {
|
|
assert unsafe { pv.file_descriptors[i] } != unsafe { nil }
|
|
assert unsafe { pv.file_descriptors[i].loop_id } == -1
|
|
assert unsafe { pv.file_descriptors[i].fd } == 0
|
|
}
|
|
}
|