From 2178154a17ce04c4d9cc21b7a9430e3a91dcb759 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sat, 1 Sep 2018 18:18:15 +0200 Subject: Don't die when indexing an empty list --- tests/data/complex/items/d4f361b0e3e541508eaf82c04451797f.yaml | 7 +++++++ tests/data/complex/settings.yaml | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 tests/data/complex/items/d4f361b0e3e541508eaf82c04451797f.yaml (limited to 'tests/data') diff --git a/tests/data/complex/items/d4f361b0e3e541508eaf82c04451797f.yaml b/tests/data/complex/items/d4f361b0e3e541508eaf82c04451797f.yaml new file mode 100644 index 0000000..2331e69 --- /dev/null +++ b/tests/data/complex/items/d4f361b0e3e541508eaf82c04451797f.yaml @@ -0,0 +1,7 @@ +name: 'Empty lists' +description: | + This entry has no tags and no keywords +position: '' +something: +tags: +keywords: diff --git a/tests/data/complex/settings.yaml b/tests/data/complex/settings.yaml index bd2179c..612591f 100644 --- a/tests/data/complex/settings.yaml +++ b/tests/data/complex/settings.yaml @@ -19,3 +19,7 @@ fields: type: list list: string index: field + - name: keywords + type: list + list: string + index: free -- cgit v1.2.3