brorand: tests added

This commit is contained in:
Ilya Mochalov
2016-01-15 01:24:53 +05:00
parent eba795b6a8
commit 331b62ebb4
+13
View File
@@ -0,0 +1,13 @@
/// <reference path="./brorand.d.ts" />
import * as brorand from 'brorand';
{
let result: Buffer|Uint8Array = brorand(42);
}
{
let Rand = new brorand.Rand({getByte: () => 255});
let rand: {getByte: () => number} = Rand.rand;
let result: Buffer|Uint8Array = Rand.generate(42);
}