Github user synhershko commented on a diff in the pull request:

    https://github.com/apache/lucenenet/pull/185#discussion_r78302825
  
    --- Diff: src/Lucene.Net.TestFramework/Util/fst/FSTTester.cs ---
    @@ -395,6 +407,24 @@ internal virtual FST<T> DoTest(int prune1, int prune2, 
bool allowRandomSuffixSha
     
             protected internal virtual bool OutputsEqual(T a, T b)
             {
    +            // LUCENENET: In .NET, lists do not automatically test to 
ensure
    +            // their values are equal, so we need to do that manually.
    +            // Note that we are testing the values without regard to 
whether
    +            // the enumerable type is nullable.
    +            if (a is IEnumerable && b is IEnumerable)
    +            {
    +                var iter = (b as IEnumerable).GetEnumerator();
    +                foreach (object value in a as IEnumerable)
    +                {
    +                    iter.MoveNext();
    +                    if (!object.Equals(value, iter.Current))
    +                    {
    +                        return false;
    +                    }
    +                }
    +                return true;
    +            }
    --- End diff --
    
    looks like code dup?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to