Added test for handling config file values containing "=" in their text

This commit is contained in:
David le Blanc 2021-12-15 19:29:08 +11:00 committed by Trevor Brown
parent afd6224298
commit b2b71e6402

View File

@ -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" ]
}