main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
356 bytes
|
Line | |
---|
1 | import * as assert from 'assert';
|
---|
2 | import test, { describe } from 'node:test';
|
---|
3 | import rng from '../rng.js';
|
---|
4 | describe('rng', () => {
|
---|
5 | test('Node.js RNG', () => {
|
---|
6 | const bytes = rng();
|
---|
7 | assert.equal(bytes.length, 16);
|
---|
8 | for (let i = 0; i < bytes.length; ++i) {
|
---|
9 | assert.equal(typeof bytes[i], 'number');
|
---|
10 | }
|
---|
11 | });
|
---|
12 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.