emoji: repair one-shot candidate selection
This commit is contained in:
15
tests/ipc_test.c
Normal file
15
tests/ipc_test.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "test.h"
|
||||
|
||||
void
|
||||
ipc_masks_modifiers(struct ct *t)
|
||||
{
|
||||
uchar buf[Ipcreqsz];
|
||||
u32int key, mod;
|
||||
int want;
|
||||
|
||||
ipcpackreq(buf, 1, Mctrl|Malt|(1<<1)|(1<<4)|(1<<7), 0x1f642);
|
||||
ipcunpackreq(buf, &want, &mod, &key);
|
||||
CT_EQ_INT(t, 1, want);
|
||||
CT_EQ_UINT(t, Mctrl|Malt, mod);
|
||||
CT_EQ_UINT(t, 0x1f642, key);
|
||||
}
|
||||
Reference in New Issue
Block a user