[prev in list] [next in list] [prev in thread] [next in thread]
List: avro-commits
Subject: [avro] branch master updated: AVRO-3005: Test decoding of long strings (#1101)
From: rskraba () apache ! org
Date: 2021-02-23 17:22:55
Message-ID: 161410097560.11846.16918029231110970084 () gitbox ! apache ! org
[Download RAW message or body]
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 <2036666+anekdoti@users.noreply.github.com>
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 <l.heimberg@cid.com>
---
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("01234567890123456789012345678901234567890123456789012345678901 \
23456789012345678901234567890123456789012345678901234567890123456789012345678901234567 \
8901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456", \
2)] public void TestString(string n, int overhead)
{
TestRead(n, (Decoder d) => d.ReadString(), (Encoder e, string t) => \
e.WriteString(t), overhead + n.Length);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic