From 10b9c8aa64f03b803b4e068920e11f9a52d218ed Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 29 Apr 2021 13:41:15 +0000 Subject: [PATCH] fix Signed-off-by: Christine Dodrill --- gempub_test.go | 2 +- testdata/metadata/good/nospaceaftercolon.txt | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 testdata/metadata/good/nospaceaftercolon.txt diff --git a/gempub_test.go b/gempub_test.go index 60b6045..562bc4b 100644 --- a/gempub_test.go +++ b/gempub_test.go @@ -23,7 +23,7 @@ func TestGoodMetadata(t *testing.T) { } defer fin.Close() - md, err := ReadMetadata(fin) + _, err = ReadMetadata(fin) if err != nil { t.Fatal(err) } diff --git a/testdata/metadata/good/nospaceaftercolon.txt b/testdata/metadata/good/nospaceaftercolon.txt new file mode 100644 index 0000000..cf70182 --- /dev/null +++ b/testdata/metadata/good/nospaceaftercolon.txt @@ -0,0 +1,14 @@ +title:Spellblade +gpubVersion:1.0.0 +index:book/index.gmi +author:Xe +language:en-US +charset:UTF-8 +description:A woman realizes the gap between two opposites and their place in the middle. +published:2021 +publishDate:2021-12-31 +revisionDate:2022-01-01 +copyright:Christine Dodrill +license:All Rights Reserved +version:1.0.0 +cover:cover.jpg