From 8d19fe78b4d49535605aec151e180afeb9a7ad78 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Fri, 12 Mar 2021 13:30:27 -0500 Subject: [PATCH] Updated functions to be local --- testAlgorithms.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/testAlgorithms.lua b/testAlgorithms.lua index 60c29a6..95b77ea 100644 --- a/testAlgorithms.lua +++ b/testAlgorithms.lua @@ -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