File: golang-golang-x-text.patch

package info (click to toggle)
golang-github-google-cel-go 0.18.2%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,956 kB
  • sloc: sh: 93; makefile: 12
file content (45 lines) | stat: -rw-r--r-- 2,238 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From: Simon Josefsson <simon@josefsson.org>
Last-Update: 2025-10-05
Subject: Update self tests for expected strings from golang-golang-x-text 0.29.0
Forwarded: not-needed

diff --git a/ext/strings_test.go b/ext/strings_test.go
index fc0ade1..6cb2b62 100644
--- a/ext/strings_test.go
+++ b/ext/strings_test.go
@@ -629,7 +629,7 @@ func TestStringFormat(t *testing.T) {
 			name:                  "scientific notation formatting clause",
 			format:                "%.6e",
 			formatArgs:            "1052.032911275",
-			expectedOutput:        "1.052033\u202f\u00d7\u202f10\u2070\u00b3",
+			expectedOutput:        "1.052033×10⁰³",
 			expectedRuntimeCost:   11,
 			expectedEstimatedCost: checker.CostEstimate{Min: 11, Max: 11},
 			locale:                "en_US",
@@ -656,7 +656,7 @@ func TestStringFormat(t *testing.T) {
 			name:                  "default precision for scientific notation",
 			format:                "%e",
 			formatArgs:            "2.71828",
-			expectedOutput:        "2.718280\u202f\u00d7\u202f10\u2070\u2070",
+			expectedOutput:        "2.718280×10⁰⁰",
 			expectedRuntimeCost:   11,
 			expectedEstimatedCost: checker.CostEstimate{Min: 11, Max: 11},
 			locale:                "en_US",
@@ -665,7 +665,7 @@ func TestStringFormat(t *testing.T) {
 			name:                  "unicode output for scientific notation",
 			format:                "unescaped unicode: %e, escaped unicode: %e",
 			formatArgs:            "2.71828, 2.71828",
-			expectedOutput:        "unescaped unicode: 2.718280 × 10⁰⁰, escaped unicode: 2.718280\u202f\u00d7\u202f10\u2070\u2070",
+			expectedOutput:        "unescaped unicode: 2.718280×10⁰⁰, escaped unicode: 2.718280×10⁰⁰",
 			expectedRuntimeCost:   15,
 			expectedEstimatedCost: checker.CostEstimate{Min: 15, Max: 15},
 			locale:                "en_US",
@@ -888,7 +888,7 @@ func TestStringFormat(t *testing.T) {
 			dynArgs: map[string]any{
 				"dynE": 2.71828,
 			},
-			expectedOutput:        "(dyntype) e: 2.718280\u202f\u00d7\u202f10\u2070\u2070",
+			expectedOutput:        "(dyntype) e: 2.718280×10⁰⁰",
 			expectedRuntimeCost:   13,
 			expectedEstimatedCost: checker.CostEstimate{Min: 13, Max: 13},
 			locale:                "en_US",