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
1523aa96
"LuaInterfaceTest/Properties/AssemblyInfo.cs" did not exist on "68bdf7fa67f4dba0bc4deda2ba0a5609d03a757a"
Commit
1523aa96
authored
Apr 01, 2014
by
Vinicius Jarina
Browse files
[KeraLua] Bumped KeraLua to fix #76 / #48 Fixed support to Unicode on Windows.
parent
ca797b88
Changes
4
Hide whitespace changes
Inline
Side-by-side
KeraLua
@
2cbb3f6b
Compare
2c8859f8
...
2cbb3f6b
Subproject commit 2c
8859f8e61abd863d91d14a9ba6d5b1f65b3bc5
Subproject commit 2c
bb3f6bf29d7e337c1894637f3a894abcc76483
run_all.win32.bat
View file @
1523aa96
erase
tests
\
*
.dll
erase
tests
\
*
.dll
cd
Core
\KeraLua
cd
Core
\KeraLua
call
Makefile
.Win32.bat
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
..\..
cd
..\..
xcopy
Core
\KeraLua\external\lua\win32\bin\
*
.dll
tests
\
*
.dll
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
/
cd
tests
/
nunit
-console
NLuaTest
.dll
/xml
=
$1
nunit
-console
NLuaTest
.dll
/xml
=
$1
cd
..
cd
..
...
...
run_all.win64.bat
View file @
1523aa96
erase
tests
\
*
.dll
erase
tests
\
*
.dll
cd
Core
\KeraLua
cd
Core
\KeraLua
call
Makefile
.Win64.bat
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
..\..
cd
..\..
xcopy
Core
\KeraLua\external\lua\win64\bin64\
*
.dll
tests
\
*
.dll
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
/
cd
tests
/
nunit
-console
NLuaTest
.dll
/xml
=
$1
nunit
-console
NLuaTest
.dll
/xml
=
$1
cd
..
cd
..
tests/LuaTests.cs
View file @
1523aa96
...
@@ -27,7 +27,16 @@ namespace NLuaTest
...
@@ -27,7 +27,16 @@ namespace NLuaTest
[
Preserve
(
AllMembers
=
true
)]
[
Preserve
(
AllMembers
=
true
)]
#
endif
#
endif
public
class
LuaTests
public
class
LuaTests
{
{
public
static
readonly
char
UnicodeChar
=
'\
uE007
'
;
public
static
string
UnicodeString
{
get
{
return
Convert
.
ToString
(
UnicodeChar
);
}
}
/*
/*
* Tests capturing an exception
* Tests capturing an exception
*/
*/
...
@@ -1838,5 +1847,18 @@ namespace NLuaTest
...
@@ -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
);
}
}
}
}
}
}
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