tests: speedup random tests

This commit is contained in:
Benoit Pierre
2024-12-25 15:46:05 +01:00
committed by Frans de Jonge
parent d568b8fbbc
commit 480eb7e142

View File

@@ -10,7 +10,7 @@ describe("random package tests", function()
end) end)
it("should generate uuid without dash", function() it("should generate uuid without dash", function()
for i = 1, 10000 do for i = 1, 1000 do
local uuid = random.uuid() local uuid = random.uuid()
assert.Equals(uuid:len(), 32) assert.Equals(uuid:len(), 32)
assert.Equals(uuid:sub(13, 13), "4") assert.Equals(uuid:sub(13, 13), "4")
@@ -19,7 +19,7 @@ describe("random package tests", function()
end) end)
it("should generate uuid with dash", function() it("should generate uuid with dash", function()
for i = 1, 10000 do for i = 1, 1000 do
local uuid = random.uuid(true) local uuid = random.uuid(true)
assert.Equals(uuid:len(), 36) assert.Equals(uuid:len(), 36)
assert.Equals(uuid:sub(9, 9), "-") assert.Equals(uuid:sub(9, 9), "-")