Skip to content

Commit 2453698

Browse files
committed
fix narrow spaces of %e for x/net bump
google/cel-go#1100 Signed-off-by: Benjamin Wang <[email protected]>
1 parent f3b80a8 commit 2453698

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func TestCelCostStability(t *testing.T) {
121121
"self.val1.lowerAscii() == self.val1.lowerAscii()": 10,
122122
// strings version 2
123123
"'%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,
124-
"'%e'.format([3.14]) == '3.140000 × 10⁰⁰'": 3,
124+
"'%e'.format([3.14]) == '3.140000×10⁰⁰'": 3,
125125
"'%o %o %o'.format([7, 8, 9]) == '7 10 11'": 2,
126126
"'%b %b %b'.format([7, 8, 9]) == '111 1000 1001'": 3,
127127
},

staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func TestValidationExpressions(t *testing.T) {
277277
"self.val1.lowerAscii() == 'rook takes 👑'",
278278

279279
"'%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'",
280-
"'%e'.format([3.14]) == '3.140000 × 10⁰⁰'",
280+
"'%e'.format([3.14]) == '3.140000×10⁰⁰'",
281281
"'%o %o %o'.format([7, 8, 9]) == '7 10 11'",
282282
"'%b %b %b'.format([7, 8, 9]) == '111 1000 1001'",
283283
},

0 commit comments

Comments
 (0)