mirror of
https://bitbucket.org/Mattrixwv/luaclasses.git
synced 2025-12-06 18:33:59 -05:00
Updated functions to be local
This commit is contained in:
@@ -26,7 +26,7 @@ require "Stopwatch";
|
||||
local bigint = require "bigint";
|
||||
|
||||
|
||||
function testGetPrimes()
|
||||
local function testGetPrimes()
|
||||
local failed = false; --Holds whether a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -45,7 +45,7 @@ function testGetPrimes()
|
||||
end
|
||||
end
|
||||
|
||||
function testGetNumPrimes()
|
||||
local function testGetNumPrimes()
|
||||
local failed = false; --Holds whether a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -64,7 +64,7 @@ function testGetNumPrimes()
|
||||
end
|
||||
end
|
||||
|
||||
function testGetFactors()
|
||||
local function testGetFactors()
|
||||
local failed = false; --Holds whether a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -93,7 +93,7 @@ function testGetFactors()
|
||||
end
|
||||
end
|
||||
|
||||
function testGetDivisors()
|
||||
local function testGetDivisors()
|
||||
local failed = false; --Holds whether a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -112,7 +112,7 @@ function testGetDivisors()
|
||||
end
|
||||
end
|
||||
|
||||
function testGetFib()
|
||||
local function testGetFib()
|
||||
local failed = false; --Holds whether a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -141,7 +141,7 @@ function testGetFib()
|
||||
end
|
||||
end
|
||||
|
||||
function testGetLargeFib()
|
||||
local function testGetLargeFib()
|
||||
local failed = false; --Holds whther a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -180,7 +180,7 @@ function testGetLargeFib()
|
||||
end
|
||||
end
|
||||
|
||||
function testGetSum()
|
||||
local function testGetSum()
|
||||
local failed = false; --Holds whether a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -209,7 +209,7 @@ function testGetSum()
|
||||
end
|
||||
end
|
||||
|
||||
function testGetProd()
|
||||
local function testGetProd()
|
||||
local failed = false; --Holds whether a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -238,7 +238,7 @@ function testGetProd()
|
||||
end
|
||||
end
|
||||
|
||||
function testGetPermutations()
|
||||
local function testGetPermutations()
|
||||
local failed = false; --Holds whether a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -256,7 +256,7 @@ function testGetPermutations()
|
||||
end
|
||||
end
|
||||
|
||||
function testIsFound()
|
||||
local function testIsFound()
|
||||
local failed = false; --Signals whether a test was failed
|
||||
|
||||
--Test 1
|
||||
@@ -301,7 +301,7 @@ function testIsFound()
|
||||
end
|
||||
end
|
||||
|
||||
function testGCD()
|
||||
local function testGCD()
|
||||
local failed = false; --Signals whether a test was failed
|
||||
|
||||
--Test 1
|
||||
|
||||
Reference in New Issue
Block a user