Commit 5c2d46fd authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed `TestInexistentExtensionMethods`

parent 29f60815
...@@ -2036,7 +2036,7 @@ namespace NLuaTest ...@@ -2036,7 +2036,7 @@ namespace NLuaTest
sw.Start(); sw.Start();
try try
{ {
for(int i = 0; i < 100; i++) for(int i = 0; i < 500; i++)
lua.DoString($" v:Lengthx{i}() "); lua.DoString($" v:Lengthx{i}() ");
} }
catch (Exception e) catch (Exception e)
...@@ -2046,20 +2046,21 @@ namespace NLuaTest ...@@ -2046,20 +2046,21 @@ namespace NLuaTest
sw.Stop(); sw.Stop();
long time1 = sw.ElapsedMilliseconds; long time1 = sw.ElapsedMilliseconds;
sw.Restart(); var sw2 = new Stopwatch();
sw2.Start();
try try
{ {
for (int i = 0; i < 100; i++) for (int i = 0; i < 500; i++)
lua.DoString($" v:Lengthx{i}() "); lua.DoString($" v:Lengthx{i}() ");
} }
catch (Exception e) catch (Exception e)
{ {
Console.WriteLine(e); Console.WriteLine(e);
} }
sw.Stop(); sw2.Stop();
long time2 = sw.ElapsedMilliseconds; 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