lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [01/11] lucenenet git commit: Lucene.Net.Tests.Util.Packed.TestPackedInts: Fixed string formatting bugs
Date Sat, 25 Mar 2017 06:11:15 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/api-work 5e549b769 -> 24c4bd0aa


Lucene.Net.Tests.Util.Packed.TestPackedInts: Fixed string formatting bugs


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/ed649a16
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/ed649a16
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/ed649a16

Branch: refs/heads/api-work
Commit: ed649a16831c0a53d365e3b1e69b7d030ab24aae
Parents: 5e549b7
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Mar 24 22:22:08 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Mar 24 22:22:08 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ed649a16/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs b/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
index c0cf1b9..60f5552 100644
--- a/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
+++ b/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
@@ -381,7 +381,7 @@ namespace Lucene.Net.Util.Packed
                 catch (Exception e)
                 {
                     Console.Error.WriteLine(e.StackTrace);
-                    Assert.Fail(string.Format(CultureInfo.InvariantCulture, "Exception while
filling %s: valueCount=%d, bitsPerValue=%s", packedInt.GetType().Name, valueCount, bitsPerValue));
+                    Assert.Fail(string.Format(CultureInfo.InvariantCulture, "Exception while
filling {0}: valueCount={1}, bitsPerValue={2}", packedInt.GetType().Name, valueCount, bitsPerValue));
                 }
             }
             AssertListEquality(packedInts);
@@ -432,7 +432,7 @@ namespace Lucene.Net.Util.Packed
             {
                 long value = TestUtil.NextLong(rnd2, 0, maxValue);
                 packedInt.Set(i, value);
-                Assert.AreEqual(value, packedInt.Get(i), string.Format(CultureInfo.InvariantCulture,
"The set/get of the value at index %d should match for %s", i, packedInt.GetType().Name));
+                Assert.AreEqual(value, packedInt.Get(i), string.Format(CultureInfo.InvariantCulture,
"The set/get of the value at index {0} should match for {1}", i, packedInt.GetType().Name));
             }
         }
 
@@ -457,7 +457,7 @@ namespace Lucene.Net.Util.Packed
             {
                 for (int j = 1; j < packedInts.Count; j++)
                 {
-                    Assert.AreEqual( @base.Get(i), packedInts[j].Get(i), string.Format(CultureInfo.InvariantCulture,
"%s. The value at index %d should be the same for %s and %s", message, i, @base.GetType().Name,
packedInts[j].GetType().Name));
+                    Assert.AreEqual( @base.Get(i), packedInts[j].Get(i), string.Format(CultureInfo.InvariantCulture,
"{0}. The value at index {1} should be the same for {2} and {3}", message, i, @base.GetType().Name,
packedInts[j].GetType().Name));
                 }
             }
         }


Mime
View raw message