From 2c726e551d90d20bcd2d78545c369864cc9038e5 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 6 Jun 2025 01:32:41 +0200 Subject: Use CSV’s for mintages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/mfmt/util_test.go | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 cmd/mfmt/util_test.go (limited to 'cmd/mfmt/util_test.go') 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) - } - } -} -- cgit v1.2.3