Panel cleanup: chip padding up a step and a tighter chip line gap, corrected/SNR numbers neutral until amber or red, dB margin casing, compound elapsed units (1m39s) ending the minutes/metres m collision, noise chip shows presence only
This commit is contained in:
+4
-4
@@ -45,10 +45,10 @@ func TestScaleTime(t *testing.T) {
|
||||
in time.Duration
|
||||
want string
|
||||
}{
|
||||
{1500 * time.Millisecond, "1.50 s"},
|
||||
{90 * time.Second, "1.50 m"},
|
||||
{90 * time.Minute, "1.50 h"},
|
||||
{36 * time.Hour, "1.50 d"},
|
||||
{1500 * time.Millisecond, "1s"},
|
||||
{90 * time.Second, "1m30s"},
|
||||
{90 * time.Minute, "1h30m"},
|
||||
{36 * time.Hour, "1d12h"},
|
||||
} {
|
||||
if got := scaleTime(c.in); got != c.want {
|
||||
t.Errorf("scaleTime(%v) = %q, want %q", c.in, got, c.want)
|
||||
|
||||
Reference in New Issue
Block a user