diff options
author | Dan Lewis <dan@mono-cvs.ximian.com> | 2002-02-11 20:25:26 +0300 |
---|---|---|
committer | Dan Lewis <dan@mono-cvs.ximian.com> | 2002-02-11 20:25:26 +0300 |
commit | 70b7cd6b1e9c10f59d977451779982045a111693 (patch) | |
tree | 02c72c28601c0abe5edf7f31626195abecf41459 | |
parent | e53d050c6e9916f215b788a8479301c582a57580 (diff) |
{{ escape test for String.Format
svn path=/trunk/mcs/; revision=2321
-rw-r--r-- | mcs/class/corlib/Test/System/StringTest.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mcs/class/corlib/Test/System/StringTest.cs b/mcs/class/corlib/Test/System/StringTest.cs index c1c89af71de..746c8caa3e5 100644 --- a/mcs/class/corlib/Test/System/StringTest.cs +++ b/mcs/class/corlib/Test/System/StringTest.cs @@ -83,6 +83,7 @@ public class StringTest : TestCase Assert ("Formatted argument.", String.Format ("###{0:x8}#", 0xc0ffee) == "###00c0ffee#"); Assert ("Formatted argument, right justified.", String.Format ("#{0,5:x3}#", 0x33) == "# 033#"); Assert ("Formatted argument, left justified.", String.Format ("#{0,-5:x3}#", 0x33) == "#033 #"); + Assert ("Escaped bracket", String.Format ("struct _{0} {{ ... }", "MonoObject") == "struct _MonoObject { ... }"); // TODO test failure modes } |