Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
5c2d46fd
Commit
5c2d46fd
authored
Aug 21, 2019
by
Vinicius Jarina
Browse files
Fixed `TestInexistentExtensionMethods`
parent
29f60815
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/src/LuaTests.cs
View file @
5c2d46fd
...
...
@@ -2036,7 +2036,7 @@ namespace NLuaTest
sw.Start();
try
{
for(int i = 0; i <
1
00; i++)
for(int i = 0; i <
5
00; 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 <
1
00; i++)
for (int i = 0; i <
5
00; i++)
lua.DoString($" v:Lengthx{i}() ");
}
catch (Exception e)
{
Console.WriteLine(e);
}
sw.Stop();
long time2 = sw.ElapsedMilliseconds;
sw
2
.Stop();
long time2 = sw
2
.ElapsedMilliseconds;
Assert.True(time2 < time1, "#1
"
);
Assert.True(time2 < time1, "#1
t1:" + time1 + "t2:" + time2
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment