[ruby/fiddle] test: Fix a typo

(https://github.com/ruby/fiddle/pull/154)

https://github.com/ruby/fiddle/commit/1f818e4684
This commit is contained in:
kojix2 2024-10-18 04:52:27 +09:00 committed by Hiroshi SHIBATA
parent 326a21d441
commit 9a98b70a50

View File

@ -215,7 +215,7 @@ module Fiddle
keyboard_event_struct = Fiddle::Importer.struct(['unsigned int state', 'char key'])
mouse_event_struct = Fiddle::Importer.struct(['unsigned int button', 'unsigned short x', 'unsigned short y'])
event_union = Fiddle::Importer.union([{ keboard: keyboard_event_struct, mouse: mouse_event_struct}])
event_union = Fiddle::Importer.union([{ keyboard: keyboard_event_struct, mouse: mouse_event_struct}])
assert_equal LIBC::UnionNestedStruct.size, event_union.size
end