Compare commits

...

3 Commits

Author SHA1 Message Date
Andreas Deininger 22971ffce5
Merge 236e6a50b2 into bbf40bb0e4 2024-02-15 03:09:42 -08:00
tidwall bbf40bb0e4 Fix backspace and form-feed for Go 1.22 2024-02-14 20:51:40 -07:00
Andreas Deininger 236e6a50b2 Bump GitHub workflows to latest versions 2023-11-17 10:03:02 +01:00
2 changed files with 14 additions and 10 deletions

View File

@ -14,12 +14,12 @@ jobs:
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.13
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get dependencies
run: |

View File

@ -2578,6 +2578,9 @@ func TestJSONString(t *testing.T) {
testJSONString(t, s)
testJSONString(t, "R\xfd\xfc\a!\x82eO\x16?_\x0f\x9ab\x1dr")
testJSONString(t, "_\xb9\v\xad\xb3|X!\xb6\xd9U&\xa4\x1a\x95\x04")
data, _ := json.Marshal("\b\f")
if (string(data) == "\"\\b\\f\"") {
// Go version 1.22+ encodes "\b" and "\f" correctly.
testJSONString(t, "\b\f")
rng := rand.New(rand.NewSource(time.Now().UnixNano()))
start := time.Now()
@ -2588,6 +2591,7 @@ func TestJSONString(t *testing.T) {
}
testJSONString(t, string(buf[:]))
}
}
}
func TestIndexAtSymbol(t *testing.T) {