Skip to content

Commit f8cfe20

Browse files
authored
Fix typeo in string_ext.textproto (#442)
Signed-off-by: Justin King <jcking@google.com>
1 parent 261e335 commit f8cfe20

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/simple/testdata/string_ext.textproto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ section: {
543543
}
544544
test: {
545545
name: "NaN support for scientific notation"
546-
expr: '"%e".format(["NaN"])'
546+
expr: '"%e".format([double("NaN")])'
547547
value: {
548548
string_value: 'NaN',
549549
}
@@ -564,7 +564,7 @@ section: {
564564
}
565565
test: {
566566
name: "NaN support for decimal"
567-
expr: '"%d".format(["NaN"])'
567+
expr: '"%d".format([double("NaN")])'
568568
value: {
569569
string_value: 'NaN',
570570
}
@@ -585,7 +585,7 @@ section: {
585585
}
586586
test: {
587587
name: "NaN support for fixed-point"
588-
expr: '"%f".format(["NaN"])'
588+
expr: '"%f".format([double("NaN")])'
589589
value: {
590590
string_value: 'NaN',
591591
}
@@ -655,7 +655,7 @@ section: {
655655
}
656656
test: {
657657
name: "list support for string"
658-
expr: '"%s".format([[abc, 3.14, null, [9, 8, 7, 6], 2023-02-03T23:31:20Z]])'
658+
expr: '"%s".format([[abc, 3.14, null, [9, 8, 7, 6], timestamp("2023-02-03T23:31:20Z")]])'
659659
value: {
660660
string_value: '[abc, 3.14, null, [9, 8, 7, 6], 2023-02-03T23:31:20Z]',
661661
}
@@ -746,9 +746,9 @@ section: {
746746
}
747747
test: {
748748
name: "dyntype NaN/infinity support for fixed-point"
749-
expr: '"NaN: %f, infinity: %f".format([double("NaN"), double("Infinity"), double("-Infinity")])'
749+
expr: '"%s".format([double("NaN"), double("Infinity"), double("-Infinity")])'
750750
value: {
751-
string_value: 'NaN, Infinity, -Infinity',
751+
string_value: '[NaN, Infinity, -Infinity]',
752752
}
753753
}
754754
test: {
@@ -776,7 +776,7 @@ section: {
776776
name: "dyntype support for maps"
777777
expr: '"%s".format([{"strKey":"x", 6:duration("422s"), true:42}])'
778778
value: {
779-
string_value: '{strKey: x, 6: 422s, true: 42}',
779+
string_value: '{6: 422s, strKey: x, true: 42}',
780780
}
781781
}
782782
test: {

0 commit comments

Comments
 (0)