summaryrefslogtreecommitdiffhomepage
path: root/cmd/mfmt/util_test.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-06-06 01:32:41 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-06-06 01:32:41 +0200
commit2c726e551d90d20bcd2d78545c369864cc9038e5 (patch)
tree520615a33c966c729e70e549e859a2c01dc4ba40 /cmd/mfmt/util_test.go
parent9379ea42a9b0afd1abf705bf3300f03d8bbe79f9 (diff)
Use CSV’s for mintages
Diffstat (limited to 'cmd/mfmt/util_test.go')
-rw-r--r--cmd/mfmt/util_test.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/cmd/mfmt/util_test.go b/cmd/mfmt/util_test.go
deleted file mode 100644
index 8366a50..0000000
--- a/cmd/mfmt/util_test.go
+++ /dev/null
@@ -1,35 +0,0 @@
-/* This file contains tests for utility functions used in the mfmt
- binary. Tests of the actual application are in main_test.go. */
-
-package main
-
-import "testing"
-
-func TestFormatInt(t *testing.T) {
- for _, x := range [...]struct{ x, y string }{
- {"?", "?"},
- {"0", "0"},
- {"123", "123"},
- {"81758", "81.758"},
- {"752759237528", "752.759.237.528"},
- } {
- s := formatMintage(x.x)
- if s != x.y {
- t.Fatalf(`Expected s="%s"; got "%s"`, x.y, s)
- }
- }
-}
-
-func TestIntLen(t *testing.T) {
- for _, x := range [...]struct{ x, y int }{
- {0, len("0")},
- {123, len("123")},
- {81758, len("81758")},
- {752759237528, len("752759237528")},
- } {
- n := intlen(x.x)
- if n != x.y {
- t.Fatalf("Expected n=%d; got %d", x.y, n)
- }
- }
-}