File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -538,13 +538,41 @@ section: {
538538 string_value: ' 2.718280' ,
539539 }
540540 }
541+ test: {
542+ name: " default precision for fixed-point clause with int"
543+ expr: ' "%f".format([2])'
544+ value: {
545+ string_value: ' 2.000000' ,
546+ }
547+ }
548+ test: {
549+ name: " default precision for fixed-point clause with uint"
550+ expr: ' "%f".format([3u])'
551+ value: {
552+ string_value: ' 3.000000' ,
553+ }
554+ }
541555 test: {
542556 name: " default precision for scientific notation"
543557 expr: ' "%e".format([2.71828])'
544558 value: {
545559 string_value: ' 2.718280e+00' ,
546560 }
547561 }
562+ test: {
563+ name: " default precision for scientific notation with int"
564+ expr: ' "%e".format([2])'
565+ value: {
566+ string_value: ' 2.000000e+00' ,
567+ }
568+ }
569+ test: {
570+ name: " default precision for scientific notation with uint"
571+ expr: ' "%e".format([3u])'
572+ value: {
573+ string_value: ' 3.000000e+00' ,
574+ }
575+ }
548576 test: {
549577 name: " NaN support for scientific notation"
550578 expr: ' "%e".format([double("NaN")])'
You can’t perform that action at this time.
0 commit comments