diff options
author | Catherine Noll <noll.catherine@gmail.com> | 2021-03-28 00:22:11 -0400 |
---|---|---|
committer | Catherine Noll <noll.catherine@gmail.com> | 2021-03-28 00:22:11 -0400 |
commit | ebb05c7e677d8a3148aa5543b4fd780ae7429eb6 (patch) | |
tree | 2ce23fdc90e112033f0ee9096f1c348e89aaf777 | |
parent | 6dd4209e75252cb28563a618ec91285d97a07cd6 (diff) |
Use string literal instead of escaping double quotes
-rw-r--r-- | src/options/get.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/options/get.rs b/src/options/get.rs index 5752283a..6542fd8e 100644 --- a/src/options/get.rs +++ b/src/options/get.rs @@ -301,27 +301,27 @@ pub mod tests { #[test] fn test_get_themes_from_config() { - let git_config_contents = b" -[delta \"dark-theme\"] + let git_config_contents = r#" +[delta "dark-theme"] max-line-distance = 0.6 dark = true -[delta \"light-theme\"] +[delta "light-theme"] max-line-distance = 0.6 light = true -[delta \"light-and-dark-theme\"] +[delta "light-and-dark-theme"] max-line-distance = 0.6 light = true dark = true -[delta \"not-a-theme\"] +[delta "not-a-theme"] max-line-distance = 0.6 -"; +"#; let git_config_path = "delta__test_get_themes_git_config.gitconfig"; let git_config = Some(integration_test_utils::make_git_config( - git_config_contents, + git_config_contents.as_bytes(), git_config_path, false, )); |