Skip to content

Instantly share code, notes, and snippets.

@Kubuxu
Last active August 13, 2016 09:01
Show Gist options
  • Save Kubuxu/6c718fd3756a765aaba3e079ad5f5814 to your computer and use it in GitHub Desktop.
Save Kubuxu/6c718fd3756a765aaba3e079ad5f5814 to your computer and use it in GitHub Desktop.
sharness not a buy
From 8ed20f062626ff36b98882dd33d7c2a07f31f51f Mon Sep 17 00:00:00 2001
From: Jakub Sztandera <kubuxu@protonmail.ch>
Date: Wed, 10 Aug 2016 20:01:14 +0200
Subject: [PATCH] test_cmp space in arguements test
---
test/simple.t | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/test/simple.t b/test/simple.t
index 9b2d9b6..a6fcced 100755
--- a/test/simple.t
+++ b/test/simple.t
@@ -27,6 +27,13 @@ test_expect_failure "We expect this to fail" "
test 1 = 2
"
+test_expect_success "test_cmp works with spaces" '
+ echo Hello World > somefile &&
+ DIR="$(dirname $(realpath somefile))" &&
+ echo $DIR &&
+ test_cmp "$DIR/somefile" somefile
+'
+
test_done
# vi: set ft=sh :
--
2.9.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment