test/fixedbugs/issue77613.go
raw| 1 | // run |
| 2 | |
| 3 | // Copyright 2026 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | package main |
| 8 | |
| 9 | import ( |
| 10 | "strings" |
| 11 | ) |
| 12 | |
| 13 | func main() { |
| 14 | str1 := "你好世界" |
| 15 | if !strings.HasSuffix(str1, "世界") { |
| 16 | panic(1) |
| 17 | } |
| 18 | |
| 19 | str2 := "こんにちは" |
| 20 | if !strings.HasSuffix(str2, "ちは") { |
| 21 | panic(2) |
| 22 | } |
| 23 | |
| 24 | str3 := "спасибо" |
| 25 | if !strings.HasSuffix(str3, "ибо") { |
| 26 | panic(3) |
| 27 | } |
| 28 | } |