[Mono-devel-list] patch for mcs/tests/test-74.cs

Marek Safar marek.safar at seznam.cz
Tue Jul 6 15:52:37 EDT 2004


Hi,

No, it is not broken it's only "not perfect". On my box (windows + CRLF 
as line ending for cvs files) it passes. We only have to add handling 
for your (CR)LF combination.

Marek

>Hello,
>
>I think test-74.cs in mcs tests is broken since it uses NewLine
>that is CRLF under windows, while the compared string holds LF.
>
>Or does @"...
>..." vary depending on the compiling environment?
>
>Atsushi Eno
>  
>
>------------------------------------------------------------------------
>
>? test-74.diff
>Index: test-74.cs
>===================================================================
>RCS file: /cvs/public/mcs/tests/test-74.cs,v
>retrieving revision 1.4
>diff -u -r1.4 test-74.cs
>--- test-74.cs	26 May 2004 11:07:30 -0000	1.4
>+++ test-74.cs	6 Jul 2004 17:46:36 -0000
>@@ -18,7 +18,7 @@
> 		if (e != f)
> 			return 2;
> 
>-		string g = "Hello" + System.Environment.NewLine + "world";
>+		string g = "Hello\nworld";
> 		string h = @"Hello
> world";
> 		if (g != h) 
>  
>




More information about the Mono-devel-list mailing list