forked from starnakin/IronGOLEM
19 lines
352 B
Plaintext
19 lines
352 B
Plaintext
|
main()
|
||
|
{
|
||
|
local tab;
|
||
|
|
||
|
name = "get_raw_bit";
|
||
|
|
||
|
tab = get_raw_bit(1);
|
||
|
test_tab_num(tab, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, 16, "");
|
||
|
free(tab);
|
||
|
|
||
|
tab = get_raw_bit(2);
|
||
|
test_tab_num(tab, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0}, 16, "");
|
||
|
free(tab);
|
||
|
|
||
|
tab = get_raw_bit(0x8000);
|
||
|
test_tab_num(tab, {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 16, "");
|
||
|
free(tab);
|
||
|
}
|