From 18ecf33ec41a862e95b80d28caa6360bd9667f40 Mon Sep 17 00:00:00 2001 From: Gregory Petrosyan Date: Wed, 17 Feb 2021 00:40:23 +0300 Subject: [PATCH] Adjust string examples to Go 1.16 (Unicode 13.0) --- strings_example_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/strings_example_test.go b/strings_example_test.go index f231acb..df35b86 100644 --- a/strings_example_test.go +++ b/strings_example_test.go @@ -5,7 +5,7 @@ // file, You can obtain one at https://mozilla.org/MPL/2.0/. // String generation depends on the Unicode tables, which change with Go versions: -// +build go1.14 +// +build go1.16 package rapid_test @@ -31,8 +31,8 @@ func ExampleRune() { // '\\' '\ufeff' '?' '~' '-' // '0' '$' '!' '`' '\ue05d' // '"' '&' '#' '\u0604' 'A' - // '&' '茞' '@' '#' '|' - // '⊙' '𝩔' '$' '҈' '\r' + // '&' '苦' '@' '#' '|' + // '⊙' '𝩇' '$' '҈' '\r' } func ExampleRuneFrom() { @@ -67,7 +67,7 @@ func ExampleString() { } // Output: // "\\߾⃝!/?Ⱥ֍" - // "\u2006𑨷" + // "\u2006𑨃" // "?﹩\u0603ᾢ" // ".*%:<%৲" // "" @@ -95,7 +95,7 @@ func ExampleStringN() { } // Output: // "\\߾⃝!/" - // "\u2006𑨷%\v\ufeff" + // "\u2006𑨃%\v\ufeff" // "?﹩\u0603ᾢÉ" // ".*%:<" // ":?\"~¤"