lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r833874 [3/3] - in /incubator/lucene.net/trunk/C#/src: Lucene.Net/Analysis/ Lucene.Net/Analysis/Tokenattributes/ Lucene.Net/Util/ Test/Analysis/ Test/Analysis/Tokenattributes/
Date Sun, 08 Nov 2009 13:36:43 GMT
Modified: incubator/lucene.net/trunk/C#/src/Test/Analysis/TestISOLatin1AccentFilter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Analysis/TestISOLatin1AccentFilter.cs?rev=833874&r1=833873&r2=833874&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Analysis/TestISOLatin1AccentFilter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Analysis/TestISOLatin1AccentFilter.cs Sun Nov 
8 13:36:42 2009
@@ -30,7 +30,7 @@
         [Test]
 		public virtual void  TestU()
 		{
-			TokenStream stream = new WhitespaceTokenizer(new System.IO.StringReader("Des mot clés
À LA CHAÎNE À �? Â Ã Ä Å Æ Ç È É Ê Ë Ì �?
Î �? IJ �? Ñ Ò Ó Ô Õ Ö Ø Œ Þ Ù Ú Û Ü
�? Ÿ à á â ã ä å æ ç è é ê ë ì í î ï
ij ð ñ ò ó ô õ ö ø œ ß þ ù ú û ü ý ÿ
�? fl"));
+			TokenStream stream = new WhitespaceTokenizer(new System.IO.StringReader("Des mot clés
À LA CHAÎNE À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î
Ï IJ Ð Ñ Ò Ó Ô Õ Ö Ø Œ Þ Ù Ú Û Ü Ý Ÿ
à á â ã ä å æ ç è é ê ë ì í î ï ij ð
ñ ò ó ô õ ö ø œ ß þ ù ú û ü ý ÿ fi fl"));
 			ISOLatin1AccentFilter filter = new ISOLatin1AccentFilter(stream);
 			TermAttribute termAtt = (TermAttribute) filter.GetAttribute(typeof(TermAttribute));
 			AssertTermEquals("Des", filter, termAtt);

Modified: incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopAnalyzer.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Analysis/TestStopAnalyzer.cs?rev=833874&r1=833873&r2=833874&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopAnalyzer.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Analysis/TestStopAnalyzer.cs Sun Nov  8 13:36:42
2009
@@ -35,6 +35,10 @@
 		public TestStopAnalyzer(System.String s):base(s)
 		{
 		}
+
+        public TestStopAnalyzer() 
+        {
+        }
 		
 		[SetUp]
 		public override void  SetUp()

Modified: incubator/lucene.net/trunk/C#/src/Test/Analysis/TestTeeSinkTokenFilter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Analysis/TestTeeSinkTokenFilter.cs?rev=833874&r1=833873&r2=833874&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Analysis/TestTeeSinkTokenFilter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Analysis/TestTeeSinkTokenFilter.cs Sun Nov  8 13:36:42
2009
@@ -58,6 +58,10 @@
 		public TestTeeSinkTokenFilter(System.String s):base(s)
 		{
 		}
+
+        public TestTeeSinkTokenFilter()
+        {
+        }
 		
 		[SetUp]
 		public override void  SetUp()

Modified: incubator/lucene.net/trunk/C#/src/Test/Analysis/TestTeeTokenFilter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Analysis/TestTeeTokenFilter.cs?rev=833874&r1=833873&r2=833874&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Analysis/TestTeeTokenFilter.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Analysis/TestTeeTokenFilter.cs Sun Nov  8 13:36:42
2009
@@ -121,6 +121,10 @@
 		public TestTeeTokenFilter(System.String s):base(s)
 		{
 		}
+
+        public TestTeeTokenFilter()
+        {
+        }
 		
 		[SetUp]
 		public override void  SetUp()

Modified: incubator/lucene.net/trunk/C#/src/Test/Analysis/TestToken.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Analysis/TestToken.cs?rev=833874&r1=833873&r2=833874&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Analysis/TestToken.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Analysis/TestToken.cs Sun Nov  8 13:36:42 2009
@@ -29,6 +29,9 @@
     [TestFixture]
 	public class TestToken:LuceneTestCase
 	{
+        public TestToken()
+        {
+        }
 		
 		public TestToken(System.String name):base(name)
 		{
@@ -211,13 +214,13 @@
 			char[] buf = t.TermBuffer();
 			Token copy = (Token) TestSimpleAttributeImpls.AssertCloneIsEqual(t);
 			Assert.AreEqual(t.Term(), copy.Term());
-            Assert.AreNotEqual(buf, copy.TermBuffer());
+            Assert.AreNotSame(buf, copy.TermBuffer());
 			
 			Payload pl = new Payload(new byte[]{1, 2, 3, 4});
 			t.SetPayload(pl);
 			copy = (Token) TestSimpleAttributeImpls.AssertCloneIsEqual(t);
 			Assert.AreEqual(pl, copy.GetPayload());
-			Assert.AreNotEqual(pl, copy.GetPayload());
+			Assert.AreNotSame(pl, copy.GetPayload());
 		}
 		
         [Test]
@@ -234,13 +237,13 @@
 			char[] buf = t.TermBuffer();
 			copy = (Token) TestSimpleAttributeImpls.AssertCopyIsEqual(t);
 			Assert.AreEqual(t.Term(), copy.Term());
-			Assert.AreNotEqual(buf, copy.TermBuffer());
+			Assert.AreNotSame(buf, copy.TermBuffer());
 			
 			Payload pl = new Payload(new byte[]{1, 2, 3, 4});
 			t.SetPayload(pl);
 			copy = (Token) TestSimpleAttributeImpls.AssertCopyIsEqual(t);
 			Assert.AreEqual(pl, copy.GetPayload());
-			Assert.AreNotEqual(pl, copy.GetPayload());
+            Assert.AreNotSame(pl, copy.GetPayload());
 		}
 	}
 }
\ No newline at end of file

Modified: incubator/lucene.net/trunk/C#/src/Test/Analysis/Tokenattributes/TestSimpleAttributeImpls.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Analysis/Tokenattributes/TestSimpleAttributeImpls.cs?rev=833874&r1=833873&r2=833874&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Analysis/Tokenattributes/TestSimpleAttributeImpls.cs
(original)
+++ incubator/lucene.net/trunk/C#/src/Test/Analysis/Tokenattributes/TestSimpleAttributeImpls.cs
Sun Nov  8 13:36:42 2009
@@ -30,10 +30,10 @@
 	public class TestSimpleAttributeImpls:LuceneTestCase
 	{
 		
-		public TestSimpleAttributeImpls(System.String name):base(name)
+		public TestSimpleAttributeImpls():base("")
 		{
 		}
-		
+        
         [Test]
 		public virtual void  TestFlagsAttribute()
 		{
@@ -102,11 +102,11 @@
 			
 			PayloadAttributeImpl att2 = (PayloadAttributeImpl) AssertCloneIsEqual(att);
 			Assert.AreEqual(pl, att2.GetPayload());
-			Assert.AreNotEqual(pl, att2.GetPayload());
+			Assert.AreNotSame(pl, att2.GetPayload());
 			
 			att2 = (PayloadAttributeImpl) AssertCopyIsEqual(att);
 			Assert.AreEqual(pl, att2.GetPayload());
-			Assert.AreNotEqual(pl, att2.GetPayload());
+            Assert.AreNotSame(pl, att2.GetPayload());
 			
 			att.Clear();
 			Assert.IsNull(att.GetPayload());

Modified: incubator/lucene.net/trunk/C#/src/Test/Analysis/Tokenattributes/TestTermAttributeImpl.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Analysis/Tokenattributes/TestTermAttributeImpl.cs?rev=833874&r1=833873&r2=833874&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Analysis/Tokenattributes/TestTermAttributeImpl.cs
(original)
+++ incubator/lucene.net/trunk/C#/src/Test/Analysis/Tokenattributes/TestTermAttributeImpl.cs
Sun Nov  8 13:36:42 2009
@@ -28,10 +28,10 @@
 	public class TestTermAttributeImpl:LuceneTestCase
 	{
 		
-		public TestTermAttributeImpl(System.String name):base(name)
+		public TestTermAttributeImpl():base("")
 		{
 		}
-		
+
         [Test]
 		public virtual void  TestResize()
 		{
@@ -160,7 +160,7 @@
 			char[] buf = t.TermBuffer();
 			TermAttributeImpl copy = (TermAttributeImpl) TestSimpleAttributeImpls.AssertCloneIsEqual(t);
 			Assert.AreEqual(t.Term(), copy.Term());
-			Assert.AreNotEqual(buf, copy.TermBuffer());
+			Assert.AreNotSame(buf, copy.TermBuffer());
 		}
 		
         [Test]
@@ -194,7 +194,7 @@
 			char[] buf = t.TermBuffer();
 			copy = (TermAttributeImpl) TestSimpleAttributeImpls.AssertCopyIsEqual(t);
 			Assert.AreEqual(t.Term(), copy.Term());
-			Assert.AreNotEqual(buf, copy.TermBuffer());
+			Assert.AreNotSame(buf, copy.TermBuffer());
 		}
 	}
 }
\ No newline at end of file



Mime
View raw message