This is an automated email from the ASF dual-hosted git repository.

CurtHagenlocher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-dotnet.git


The following commit(s) were added to refs/heads/main by this push:
     new cc3d329  Fix integration tests by modifying CompareVariadicArrays 
(#360)
cc3d329 is described below

commit cc3d329e2180bd4e515a1ebc932cae4c5ea79461
Author: Curt Hagenlocher <[email protected]>
AuthorDate: Mon May 18 16:51:40 2026 -0700

    Fix integration tests by modifying CompareVariadicArrays (#360)
    
    ## What's Changed
    
    Fix integration tests by modifying `CompareVariadicArrays` so that it
    only does a direct buffer comparison when `_strictCompare` is enabled.
    
    Fixes #359
---
 test/Apache.Arrow.Tests/ArrowReaderVerifier.cs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/Apache.Arrow.Tests/ArrowReaderVerifier.cs 
b/test/Apache.Arrow.Tests/ArrowReaderVerifier.cs
index b024338..6a4a325 100644
--- a/test/Apache.Arrow.Tests/ArrowReaderVerifier.cs
+++ b/test/Apache.Arrow.Tests/ArrowReaderVerifier.cs
@@ -362,7 +362,10 @@ namespace Apache.Arrow.Tests
 
                 CompareValidityBuffer(expectedArray.NullCount, 
_expectedArray.Length, expectedArray.NullBitmapBuffer, expectedArray.Offset, 
actualArray.NullBitmapBuffer, actualArray.Offset);
 
-                
Assert.True(expectedArray.Views.SequenceEqual(actualArray.Views));
+                if (_strictCompare)
+                {
+                    
Assert.True(expectedArray.Views.SequenceEqual(actualArray.Views));
+                }
 
                 for (int i = 0; i < expectedArray.Length; i++)
                 {

Reply via email to