Commit 1523aa96 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

[KeraLua] Bumped KeraLua to fix #76 / #48 Fixed support to Unicode on Windows.

parent ca797b88
Subproject commit 2c8859f8e61abd863d91d14a9ba6d5b1f65b3bc5
Subproject commit 2cbb3f6bf29d7e337c1894637f3a894abcc76483
erase tests\*.dll
cd Core\KeraLua
call Makefile.Win32.bat
msbuild KeraLua.Net40.sln /p:Configuration=Release /p:Platform="Any CPU"
msbuild KeraLua.Net40.sln /p:Configuration=Release /p:DefineConstants=WSTRING /p:Platform="Any CPU"
cd ..\..
xcopy Core\KeraLua\external\lua\win32\bin\*.dll tests\*.dll
msbuild NLua.Net40.sln /p:Configuration=Release /p:Platform="Any CPU"
msbuild NLua.Net40.sln /p:Configuration=Release /p:DefineConstants=WSTRING /p:Platform="Any CPU"
cd tests/
nunit-console NLuaTest.dll /xml=$1
cd ..
......
erase tests\*.dll
cd Core\KeraLua
call Makefile.Win64.bat
msbuild KeraLua.Net40.sln /p:Configuration=Release /p:Platform="Any CPU"
msbuild KeraLua.Net40.sln /p:Configuration=Release /p:DefineConstants=WSTRING /p:Platform="Any CPU"
cd ..\..
xcopy Core\KeraLua\external\lua\win64\bin64\*.dll tests\*.dll
msbuild NLua.Net40.sln /p:Configuration=Release /p:Platform="Any CPU"
msbuild NLua.Net40.sln /p:Configuration=Release /p:DefineConstants=WSTRING /p:Platform="Any CPU"
cd tests/
nunit-console NLuaTest.dll /xml=$1
cd ..
......@@ -27,7 +27,16 @@ namespace NLuaTest
[Preserve (AllMembers = true)]
#endif
public class LuaTests
{
{
public static readonly char UnicodeChar = '\uE007';
public static string UnicodeString
{
get
{
return Convert.ToString (UnicodeChar);
}
}
/*
* Tests capturing an exception
*/
......@@ -1838,5 +1847,18 @@ namespace NLuaTest
}
}
[Test]
public void TestUnicodeChars ()
{
using (Lua lua = new Lua ()) {
lua.LoadCLRPackage ();
lua.DoString ("import('NLuaTest')");
lua.DoString ("res = LuaTests.UnicodeString");
string res = (string)lua ["res"];
Assert.AreEqual (LuaTests.UnicodeString, res);
}
}
}
}
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