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/main_test.go | 140 -------------------------------------------------- 1 file changed, 140 deletions(-) delete mode 100644 cmd/mfmt/main_test.go (limited to 'cmd/mfmt/main_test.go') diff --git a/cmd/mfmt/main_test.go b/cmd/mfmt/main_test.go deleted file mode 100644 index ef91473..0000000 --- a/cmd/mfmt/main_test.go +++ /dev/null @@ -1,140 +0,0 @@ -package main - -import ( - "bytes" - "testing" -) - -func runTest(t *testing.T, in, out string, nilErr bool) { -} - -func TestComplete(t *testing.T) { - in := ` -2014 -60.000 60.000 860.000 860.000 860.000 340.000 511.843 360.000 -70.000 70.000 70.000 70.000 70.000 70.000 70.000 70.000 -3.000 3.000 3.000 3.000 3.000 3.000 3.000 3.000 - -# Ref: https://example.com -2015 - 0 0 0 0 0 0 0 1.072.400 -40.000 40.000 40.000 40.000 40.000 40.000 40.000 40.000 - ? ? ? ? ? ? ? ? - -2016 - 0 0 0 0 0 0 2.339.200 0 -35.000 35.000 35.000 35.000 35.000 35.000 35.000 35.000 - ? ? ? ? ? ? ? ? - -2017 -2.582.395 1.515.000 2.191.421 1.103.000 1.213.000 968.800 17.000 794.588 -22.000 22.000 22.000 22.000 22.000 22.000 22.000 22.000 - ? ? ? ? ? ? ? ? - -2018 -2.430.000 2.550.000 1.800.000 980.000 1.014.000 890.000 0 868.000 -20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 - ? ? ? ? ? ? ? ? - -2019 -2.447.000 1.727.000 2.100.000 1.610.000 1.570.000 930.000 0 1.058.310 -15.000 15.000 15.000 15.000 15.000 15.000 15.000 15.000 - ? ? ? ? ? ? ? ? - -2020 - 0 0 0 860.000 175.000 740.000 0 1.500.000 -12.000 12.000 12.000 12.000 12.000 12.000 12.000 12.000 - ? ? ? ? ? ? ? ? - -2021 - 200.000 700.000 0 1.400.000 1.420.000 600.000 50.000 1.474.500 -10.500 10.500 10.500 10.500 10.500 10.500 10.500 10.500 - ? ? ? ? ? ? ? ? - -2022 - 700.000 450.000 400.000 700.000 700.000 380.000 0 1.708.000 -10.500 10.500 10.500 10.500 10.500 10.500 10.500 10.500 - ? ? ? ? ? ? ? ? - -2023 - 0 0 0 0 0 0 0 2.075.250 -10.500 10.500 10.500 10.500 10.500 10.500 10.500 10.500 - ? ? ? ? ? ? ? ? - -2024 - ? ? ? ? ? ? ? ? - ? ? ? ? ? ? ? ? - ? ? ? ? ? ? ? ? - - 2014 "Council of Europe" - ? ? ? -` - out := ` -2014 - 60.000 60.000 860.000 860.000 860.000 340.000 511.843 360.000 - 70.000 70.000 70.000 70.000 70.000 70.000 70.000 70.000 - 3.000 3.000 3.000 3.000 3.000 3.000 3.000 3.000 - -# Ref: https://example.com -2015 - 0 0 0 0 0 0 0 1.072.400 - 40.000 40.000 40.000 40.000 40.000 40.000 40.000 40.000 - ? ? ? ? ? ? ? ? - -2016 - 0 0 0 0 0 0 2.339.200 0 - 35.000 35.000 35.000 35.000 35.000 35.000 35.000 35.000 - ? ? ? ? ? ? ? ? - -2017 - 2.582.395 1.515.000 2.191.421 1.103.000 1.213.000 968.800 17.000 794.588 - 22.000 22.000 22.000 22.000 22.000 22.000 22.000 22.000 - ? ? ? ? ? ? ? ? - -2018 - 2.430.000 2.550.000 1.800.000 980.000 1.014.000 890.000 0 868.000 - 20.000 20.000 20.000 20.000 20.000 20.000 20.000 20.000 - ? ? ? ? ? ? ? ? - -2019 - 2.447.000 1.727.000 2.100.000 1.610.000 1.570.000 930.000 0 1.058.310 - 15.000 15.000 15.000 15.000 15.000 15.000 15.000 15.000 - ? ? ? ? ? ? ? ? - -2020 - 0 0 0 860.000 175.000 740.000 0 1.500.000 - 12.000 12.000 12.000 12.000 12.000 12.000 12.000 12.000 - ? ? ? ? ? ? ? ? - -2021 - 200.000 700.000 0 1.400.000 1.420.000 600.000 50.000 1.474.500 - 10.500 10.500 10.500 10.500 10.500 10.500 10.500 10.500 - ? ? ? ? ? ? ? ? - -2022 - 700.000 450.000 400.000 700.000 700.000 380.000 0 1.708.000 - 10.500 10.500 10.500 10.500 10.500 10.500 10.500 10.500 - ? ? ? ? ? ? ? ? - -2023 - 0 0 0 0 0 0 0 2.075.250 - 10.500 10.500 10.500 10.500 10.500 10.500 10.500 10.500 - ? ? ? ? ? ? ? ? - -2024 - ? ? ? ? ? ? ? ? - ? ? ? ? ? ? ? ? - ? ? ? ? ? ? ? ? - -2014 "Council of Europe" - ? ? ? -` - - r := bytes.NewReader([]byte(in)) - w := new(bytes.Buffer) - - mfmt("-", r, w) - if w.String() != out { - t.Fatalf(`Expected w.String()="%s"; got "%s"`, out, w.String()) - } -} -- cgit v1.2.3