"tests/vscode:/vscode.git/clone" did not exist on "dc0a0618ab2724325db742c0b6180e495a6ce4d0"
Commit 5c2d46fd authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed `TestInexistentExtensionMethods`

parent 29f60815
......@@ -2036,7 +2036,7 @@ namespace NLuaTest
sw.Start();
try
{
for(int i = 0; i < 100; i++)
for(int i = 0; i < 500; i++)
lua.DoString($" v:Lengthx{i}() ");
}
catch (Exception e)
......@@ -2046,20 +2046,21 @@ namespace NLuaTest
sw.Stop();
long time1 = sw.ElapsedMilliseconds;
sw.Restart();
var sw2 = new Stopwatch();
sw2.Start();
try
{
for (int i = 0; i < 100; i++)
for (int i = 0; i < 500; i++)
lua.DoString($" v:Lengthx{i}() ");
}
catch (Exception e)
{
Console.WriteLine(e);
}
sw.Stop();
long time2 = sw.ElapsedMilliseconds;
sw2.Stop();
long time2 = sw2.ElapsedMilliseconds;
Assert.True(time2 < time1, "#1");
Assert.True(time2 < time1, "#1 t1:" + time1 + "t2:" + time2);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment