test_util_queue: finish stress-test by emptying the queue
authorAnton Shestakov <av6@dwimlabs.net>
Thu, 21 Jul 2016 01:23:32 +0800
changeset 7512 d4bd036e679b
parent 7511 736dea7b99ec
child 7513 8a0a50e8ef2d
child 7514 ef6505962351
test_util_queue: finish stress-test by emptying the queue
tests/test_util_queue.lua
--- a/tests/test_util_queue.lua	Wed Jul 20 18:07:10 2016 +0200
+++ b/tests/test_util_queue.lua	Thu Jul 21 01:23:32 2016 +0800
@@ -46,6 +46,8 @@
 			assert_equal(q:pop(), i);
 			assert_is(q:push(i+1));
 		end
+		assert_equal(q:pop(), 1001);
+		assert_equal(q:count(), 0);
 	end
 
 	do