[banshee] [StringUtil] Fixed a unit test
- From: Alexander Kojevnikov <alexk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [StringUtil] Fixed a unit test
- Date: Tue, 17 Nov 2009 04:42:07 +0000 (UTC)
commit 7f9d2db51f91efeab3e6446a6a35fcc06c448b8f
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Tue Nov 17 15:41:48 2009 +1100
[StringUtil] Fixed a unit test
src/Libraries/Hyena/Hyena/Tests/StringUtilTests.cs | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/Libraries/Hyena/Hyena/Tests/StringUtilTests.cs b/src/Libraries/Hyena/Hyena/Tests/StringUtilTests.cs
index de38010..f0b1df7 100644
--- a/src/Libraries/Hyena/Hyena/Tests/StringUtilTests.cs
+++ b/src/Libraries/Hyena/Hyena/Tests/StringUtilTests.cs
@@ -128,13 +128,8 @@ namespace Hyena.Tests
Assert.AreEqual (null, StringUtil.RemoveNewlines (null));
Assert.AreEqual ("foobar", StringUtil.RemoveNewlines (@"foo
bar"));
- Assert.AreEqual ("foobar baz", StringUtil.RemoveNewlines (@"foo
-bar
-baz"));
- Assert.AreEqual ("haswindows newline andunix", StringUtil.RemoveNewlines (@"has
-windows
- newline
-andunix"));
+ Assert.AreEqual ("foobar baz", StringUtil.RemoveNewlines ("foo\nbar \nbaz"));
+ Assert.AreEqual ("haswindows newline andunix", StringUtil.RemoveNewlines ("has\nwindows\r\n newline \nandunix"));
}
[Test]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]