20
21 if !strings.Contains(str.String(), "Estimated Schedule Effort (organic) 0.22 months") {
22▶ t.Error("expected to match got", str.String())
23 }
24}
· · ·
30
31 if !strings.Contains(str.String(), "Processed 1 bytes, 0.000 megabytes (SI)") {
32▶ t.Error("expected to match got", str.String())
33 }
34}
· · ·
41 // The byte count is locale-grouped like every other number in the output.
42 if !strings.Contains(str.String(), "Processed 1,000,000 bytes, 1.000 megabytes (SI)") {
43▶ t.Error("expected to match got", str.String())
44 }
45}
· · ·
57 // expectation year-independent.
58 if got := xkcdKbDivisor(2026); got != float64(1024*1024) {
59▶ t.Errorf("xkcdKbDivisor(2026) = %v, want %d (non-leap, 1024-based)", got, 1024*1024)
60 }
61 if got := xkcdKbDivisor(2024); got != 1_000_000.0 {
· · ·
62▶ t.Errorf("xkcdKbDivisor(2024) = %v, want 1000000 (leap, 1000-based)", got)
63 }
64
+ 113 more matches in this file