lua: fix invocation of foreach() with nil type and implicit self
[project/uci.git] / test / tests.d / 020_get
index ad19264..630d84d 100644 (file)
@@ -31,6 +31,14 @@ test_get_option()
        assertEquals 'val' "$value"
 }
 
+test_get_option_multiline()
+{
+       cp ${REF_DIR}/get_multiline.data ${CONFIG_DIR}/test
+       value="$($UCI get test.section.opt)"
+       assertEquals '"Hello, World.
+'\''' "$value"
+}
+
 test_get_section()
 {
        cp ${REF_DIR}/get.data ${CONFIG_DIR}/test