From a72a82b4b1641cde227a403add758d49c2782914 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Thu, 15 Nov 2018 13:17:40 +0100 Subject: [PATCH] Fix tests --- test/segments/vcs-git.spec | 2 +- test/segments/vcs-hg.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/segments/vcs-git.spec b/test/segments/vcs-git.spec index f5777a1e..ab2962c8 100755 --- a/test/segments/vcs-git.spec +++ b/test/segments/vcs-git.spec @@ -500,7 +500,7 @@ function testBranchNameScriptingVulnerability() { git add . 2>/dev/null git commit -m "Initial commit" >/dev/null - assertEquals "%K{002} %F{000} %f%F{000} \$(./evil_script.sh) %k%F{002}%f " "$(build_left_prompt)" + assertEquals '%K{002} %F{000} $(./evil_script.sh) %k%F{002}%f ' "$(build_left_prompt)" } source shunit2/shunit2 diff --git a/test/segments/vcs-hg.spec b/test/segments/vcs-hg.spec index de7c5d38..c4289cef 100755 --- a/test/segments/vcs-hg.spec +++ b/test/segments/vcs-hg.spec @@ -214,7 +214,7 @@ function testBranchNameScriptingVulnerability() { hg add . >/dev/null hg commit -m "Initial commit" >/dev/null - assertEquals "%K{002} %F{000} \$(./evil_script.sh) %k%F{002}%f " "$(build_left_prompt)" + assertEquals '%K{002} %F{000} $(./evil_script.sh) %k%F{002}%f ' "$(build_left_prompt)" } source shunit2/shunit2