Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Lewis <dan@mono-cvs.ximian.com>2002-02-11 20:39:08 +0300
committerDan Lewis <dan@mono-cvs.ximian.com>2002-02-11 20:39:08 +0300
commitf7cf2cf894370a8ef6b33e66349650370ae08bb4 (patch)
tree3d1223568cb0f05db1063907111c38f9a9418140
parent2fb02f01eeba0f2a25039dec77bf92f756830b99 (diff)
}} escape String.Format
svn path=/trunk/mcs/; revision=2323
-rw-r--r--mcs/class/corlib/Test/System/StringTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/corlib/Test/System/StringTest.cs b/mcs/class/corlib/Test/System/StringTest.cs
index 746c8caa3e5..4df1158de49 100644
--- a/mcs/class/corlib/Test/System/StringTest.cs
+++ b/mcs/class/corlib/Test/System/StringTest.cs
@@ -83,7 +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 { ... }");
+ Assert ("Escaped bracket", String.Format ("typedef struct _{0} {{ ... }} MonoObject;", "MonoObject") == "typedef struct _MonoObject { ... } MonoObject;");
// TODO test failure modes
}