File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ func TestFix4_RoundingProducesCleanValues(t *testing.T) {
119119 // Format as Prometheus would (%g format)
120120 prometheusStr := fmt .Sprintf ("%g" , v )
121121
122- // Check for ugly patterns
122+ // Check for floating point issue patterns
123123 if len (prometheusStr ) > 12 && v > 0 && v < 10 {
124- t .Errorf ("Bucket %d has potentially ugly Prometheus output: le=\" %s\" " , i , prometheusStr )
124+ t .Errorf ("Bucket %d has potentially floating point issue in Prometheus output: le=\" %s\" " , i , prometheusStr )
125125 }
126126
127127 t .Logf ("Bucket %d: le=\" %s\" ✓" , i , prometheusStr )
@@ -224,7 +224,7 @@ func TestAllFixes_Comprehensive(t *testing.T) {
224224 for i , v := range buckets {
225225 prometheusStr := fmt .Sprintf ("%g" , v )
226226 if len (prometheusStr ) > 12 && v > 0 && v < 10 {
227- t .Errorf ("Bucket %d has ugly output: %s" , i , prometheusStr )
227+ t .Errorf ("Bucket %d has potentially floating point issue in the output: %s" , i , prometheusStr )
228228 }
229229 }
230230
You can’t perform that action at this time.
0 commit comments