fix narrow spaces of %e for x/net bump

https://github.com/google/cel-go/issues/1100

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
This commit is contained in:
Benjamin Wang 2025-03-28 15:22:10 +00:00
parent f3b80a8582
commit 24536987d8
2 changed files with 2 additions and 2 deletions

View File

@ -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,
},

View File

@ -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'",
},