From: Simon Josefsson Last-Update: 2026-02-12 Subject: Update self tests for expected strings from golang-golang-x-text 0.29.0 Forwarded: not-needed Reviewed-By: Andrew Lee (李健秋) --- golang-github-google-cel-go-0.27.0+ds.orig/ext/formatting_test.go +++ golang-github-google-cel-go-0.27.0+ds/ext/formatting_test.go @@ -249,7 +249,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", @@ -276,7 +276,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", @@ -321,7 +321,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", @@ -584,7 +584,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",