From b2b71e64024345fe1d5caba7930801a8e40dcc1e Mon Sep 17 00:00:00 2001 From: David le Blanc Date: Wed, 15 Dec 2021 19:29:08 +1100 Subject: [PATCH] Added test for handling config file values containing "=" in their text --- test/get_asdf_config_value.bats | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/get_asdf_config_value.bats b/test/get_asdf_config_value.bats index 1755ab50..ad341d49 100644 --- a/test/get_asdf_config_value.bats +++ b/test/get_asdf_config_value.bats @@ -38,3 +38,11 @@ teardown() { [ $(get_asdf_config_value "key1") = "value1" ] [ $(get_asdf_config_value "legacy_version_file") = "yes" ] } + +@test "get_config returns config file complete value including '=' symbols" { + cat >> $ASDF_CONFIG_FILE <<-'EOM' +key3 = VAR=val +EOM + + [ $(get_asdf_config_value "key3") = "VAR=val" ] +}