From 24536987d89b4537e9254ec815255225504a211b Mon Sep 17 00:00:00 2001 From: Benjamin Wang Date: Fri, 28 Mar 2025 15:22:10 +0000 Subject: [PATCH] fix narrow spaces of %e for x/net bump https://github.com/google/cel-go/issues/1100 Signed-off-by: Benjamin Wang --- .../pkg/apiserver/schema/cel/celcoststability_test.go | 2 +- .../pkg/apiserver/schema/cel/validation_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go b/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go index 6189c28cba6..678a4e9fb43 100644 --- a/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go +++ b/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go @@ -121,7 +121,7 @@ func TestCelCostStability(t *testing.T) { "self.val1.lowerAscii() == self.val1.lowerAscii()": 10, // strings version 2 "'%d %s %f %s %s'.format([1, 'abc', 1.0, duration('1m'), timestamp('2000-01-01T00:00:00.000Z')]) == '1 abc 1.000000 60s 2000-01-01T00:00:00Z'": 6, - "'%e'.format([3.14]) == '3.140000 × 10⁰⁰'": 3, + "'%e'.format([3.14]) == '3.140000×10⁰⁰'": 3, "'%o %o %o'.format([7, 8, 9]) == '7 10 11'": 2, "'%b %b %b'.format([7, 8, 9]) == '111 1000 1001'": 3, }, diff --git a/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go b/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go index 18f14b1e914..019701bfbdc 100644 --- a/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go +++ b/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go @@ -277,7 +277,7 @@ func TestValidationExpressions(t *testing.T) { "self.val1.lowerAscii() == 'rook takes 👑'", "'%d %s %f %s %s'.format([1, 'abc', 1.0, duration('1m'), timestamp('2000-01-01T00:00:00.000Z')]) == '1 abc 1.000000 60s 2000-01-01T00:00:00Z'", - "'%e'.format([3.14]) == '3.140000 × 10⁰⁰'", + "'%e'.format([3.14]) == '3.140000×10⁰⁰'", "'%o %o %o'.format([7, 8, 9]) == '7 10 11'", "'%b %b %b'.format([7, 8, 9]) == '111 1000 1001'", },