comparison tests/test_util_random.lua @ 7179:bfa3b2ee384c

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Mon, 22 Feb 2016 15:24:20 +0100
parents 32b74ad54432
children
comparison
equal deleted inserted replaced
7171:91d36a37a9ff 7179:bfa3b2ee384c
1 -- Makes no attempt at testing how random the bytes are,
2 -- just that it returns the number of bytes requested
3
4 function bytes(bytes)
5 assert_is(bytes(16));
6
7 for i = 1, 255 do
8 assert_equal(i, #bytes(i));
9 end
10 end