This is an automated email from the ASF dual-hosted git repository.
hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git
The following commit(s) were added to refs/heads/main by this push:
new 37d45c2f fix scalafmt HeadersSpec error because illegal unicode (#297)
37d45c2f is described below
commit 37d45c2f1b5a3db201b7be54c38f0a3eb379ec20
Author: Laglangyue <[email protected]>
AuthorDate: Sun Apr 14 16:05:51 2024 +0800
fix scalafmt HeadersSpec error because illegal unicode (#297)
---
.../scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala
b/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala
index 18a147bb..3fe0b748 100644
---
a/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala
+++
b/runtime/src/test/scala/org/apache/pekko/grpc/scaladsl/headers/HeadersSpec.scala
@@ -36,9 +36,9 @@ class HeadersSpec extends AnyWordSpec with Matchers {
("my favorite character is %", "my favorite character is %25"),
("my favorite character is 𐀁", "my favorite character is
%F0%90%80%81"),
// \ud801 is a high surrogate, a lone surrogate character is getting
decoded as ? with UTF-8
- ("my favorite character is \ud801", "my favorite character is ?"),
+ (s"my favorite character is ${0xD801.toChar}", "my favorite character
is ?"),
// \udc37 is a low surrogate, a lone surrogate character is getting
decoded as ? with UTF-8
- ("my favorite character is \udc37", "my favorite character is ?"),
+ (s"my favorite character is ${0xDC37.toChar}", "my favorite character
is ?"),
// a pair of surrogate characters is fine
("my favorite character is " + 0xDBFF.toChar + 0xDFFF.toChar, "my
favorite character is %F4%8F%BF%BF"))
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]