summaryrefslogtreecommitdiffhomepage
path: root/cmd/mfmt/main_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/main_test.go
parent9379ea42a9b0afd1abf705bf3300f03d8bbe79f9 (diff)
Use CSV’s for mintages
Diffstat (limited to 'cmd/mfmt/main_test.go')
-rw-r--r--cmd/mfmt/main_test.go140
1 files changed, 0 insertions, 140 deletions
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())
- }
-}