-- Basic integration test: prove the CC event queue round-trips a custom event.
local createLibTest = require('/apis/libtest');

local testlib = createLibTest({ ... });

testlib.test('event queue round-trips a custom event', function()
	os.queueEvent('craftos-ready');
	local ev;
	repeat
		ev = os.pullEventRaw();
	until ev == 'craftos-ready';
	testlib.assertEquals(ev, 'craftos-ready');
end);

testlib.run();
