From 30ffbbdbc503c68c1bf6881a8838286aaae607ef Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sun, 20 Feb 2022 17:42:49 -0800 Subject: [PATCH] config: add test data for iniconf. --- config/iniconf/testdata/bad.conf | 5 +++++ config/iniconf/testdata/test.conf | 13 +++++++++++++ config/iniconf/testdata/test2.conf | 3 +++ 3 files changed, 21 insertions(+) create mode 100644 config/iniconf/testdata/bad.conf create mode 100644 config/iniconf/testdata/test.conf create mode 100644 config/iniconf/testdata/test2.conf diff --git a/config/iniconf/testdata/bad.conf b/config/iniconf/testdata/bad.conf new file mode 100644 index 0000000..5288d09 --- /dev/null +++ b/config/iniconf/testdata/bad.conf @@ -0,0 +1,5 @@ +[] + +key +another key +key = val diff --git a/config/iniconf/testdata/test.conf b/config/iniconf/testdata/test.conf new file mode 100644 index 0000000..7b0ec18 --- /dev/null +++ b/config/iniconf/testdata/test.conf @@ -0,0 +1,13 @@ +[ sectionName ] +key1=some value +key2 = some other value +# we want to explain the importance and great forethought +# in this next value. +key3 = unintuitive value +key4 = " space at beginning and end " +key5 = ' is quoted with single quotes ' + +[ anotherSection ] +key1 = a value +key2 = yet another value +key1 = overwrites previous value of a value diff --git a/config/iniconf/testdata/test2.conf b/config/iniconf/testdata/test2.conf new file mode 100644 index 0000000..8e9946d --- /dev/null +++ b/config/iniconf/testdata/test2.conf @@ -0,0 +1,3 @@ +key1 = some value +key2 = some other value +key3 = unintuitive value