Changeset

7509:d4bd036e679b

test_util_queue: finish stress-test by emptying the queue
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 21 Jul 2016 01:23:32 +0800
parents 7508:736dea7b99ec
children 7510:8a0a50e8ef2d 7511:ef6505962351
files tests/test_util_queue.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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