Skip to content

Commit

Permalink
Adjust string examples to Go 1.16 (Unicode 13.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingmutant committed Feb 16, 2021
1 parent e0cd9f9 commit 18ecf33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions strings_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -31,8 +31,8 @@ func ExampleRune() {
// '\\' '\ufeff' '?' '~' '-'
// '0' '$' '!' '`' '\ue05d'
// '"' '&' '#' '\u0604' 'A'
// '&' '' '@' '#' '|'
// '⊙' '𝩔' '$' '҈' '\r'
// '&' '' '@' '#' '|'
// '⊙' '𝩇' '$' '҈' '\r'
}

func ExampleRuneFrom() {
Expand Down Expand Up @@ -67,7 +67,7 @@ func ExampleString() {
}
// Output:
// "\\߾⃝!/?Ⱥ֍"
// "\u2006𑨷"
// "\u2006𑨃"
// "?﹩\u0603ᾢ"
// ".*%:<%৲"
// ""
Expand Down Expand Up @@ -95,7 +95,7 @@ func ExampleStringN() {
}
// Output:
// "\\߾⃝!/"
// "\u2006𑨷%\v\ufeff"
// "\u2006𑨃%\v\ufeff"
// "?﹩\u0603ᾢÉ"
// ".*%:<"
// ":?\"~¤"
Expand Down

0 comments on commit 18ecf33

Please sign in to comment.