Skip to content

Commit fb1d99b

Browse files
committed
Stabilize char literal.
1 parent a1f1e0b commit fb1d99b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/MsgPack.UnitTest/Serialization/AutoMessagePackSerializerTest.Types.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+

22
#region -- License Terms --
33
//
44
// MessagePack for CLI
@@ -657,7 +657,7 @@ public ComplexTypeGenerated Initialize()
657657
#endif // !SILVERLIGHT
658658
this._TimeSpanField = TimeSpan.FromMilliseconds( 123456789 );
659659
this._GuidField = Guid.NewGuid();
660-
this._CharField = '@';
660+
this._CharField = '\u3000';
661661
this._DecimalField = 123456789.0987654321m;
662662
#if !NET35 && !WINDOWS_PHONE
663663
this._BigIntegerField = new BigInteger( UInt64.MaxValue ) + UInt64.MaxValue;

test/MsgPack.UnitTest/Serialization/AutoMessagePackSerializerTest.Types.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#@ template debug="false" hostspecific="false" language="C#" #>
1+
<#@ template debug="false" hostspecific="false" language="C#" #>
22
<#@ output extension=".cs" #>
33
<#@ include file="AutoMessagePackSerializerTest.Polymorphism.ttinclude" #>
44
<#@ assembly name="System.Core.dll" #>
@@ -63,7 +63,7 @@ var fields =
6363
new Tuple<Object, string, string, bool>( typeof( FILETIME ), String.Empty, "ToFileTime( DateTime.UtcNow )", true ),
6464
new Tuple<Object, string, string, bool>( typeof( TimeSpan ), String.Empty, "TimeSpan.FromMilliseconds( 123456789 )", true ),
6565
new Tuple<Object, string, string, bool>( typeof( Guid ), String.Empty, "Guid.NewGuid()", true ),
66-
new Tuple<Object, string, string, bool>( typeof( Char ), String.Empty, "'\u3000'", true ),
66+
new Tuple<Object, string, string, bool>( typeof( Char ), String.Empty, "'\\u3000'", true ),
6767
new Tuple<Object, string, string, bool>( typeof( Decimal ), String.Empty, "123456789.0987654321m", true ),
6868
new Tuple<Object, string, string, bool>( typeof( BigInteger ), String.Empty, "new BigInteger( UInt64.MaxValue ) + UInt64.MaxValue", true ),
6969
new Tuple<Object, string, string, bool>( typeof( Complex ), String.Empty, "new Complex( 1.3, 2.4 )", true ),

0 commit comments

Comments
 (0)