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

rskraba pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new c7eef98  AVRO-3005: Test decoding of long strings (#1101)
c7eef98 is described below

commit c7eef98ba68fc23df9a0256a0a93ac405fe3b948
Author: Lucas Heimberg <[email protected]>
AuthorDate: Tue Feb 23 18:20:57 2021 +0100

    AVRO-3005: Test decoding of long strings (#1101)
    
    Adds a unit test to check that decoding of strings of length > 256
    works.
    
    Co-authored-by: l.heimberg <[email protected]>
---
 lang/csharp/src/apache/test/IO/BinaryCodecTests.cs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lang/csharp/src/apache/test/IO/BinaryCodecTests.cs 
b/lang/csharp/src/apache/test/IO/BinaryCodecTests.cs
index d5c0b13..a6a1731 100644
--- a/lang/csharp/src/apache/test/IO/BinaryCodecTests.cs
+++ b/lang/csharp/src/apache/test/IO/BinaryCodecTests.cs
@@ -207,6 +207,7 @@ namespace Avro.Test
         [TestCase("", 1)]
         [TestCase("hello", 1)]
         
[TestCase("1234567890123456789012345678901234567890123456789012345678901234", 
2)]
+        
[TestCase("01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456",
 2)]
         public void TestString(string n, int overhead)
         {
             TestRead(n, (Decoder d) => d.ReadString(), (Encoder e, string t) 
=> e.WriteString(t), overhead + n.Length);

Reply via email to