From 03621d30ac352507dc561bb38e7eff338b7bdfd7 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Mon, 28 Jul 2014 04:57:35 -0700 Subject: [PATCH] add basic test --- test/test | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 test/test diff --git a/test/test b/test/test new file mode 100755 index 0000000..c2f2109 --- /dev/null +++ b/test/test @@ -0,0 +1,46 @@ +#!/bin/bash -l +x=$(mktemp) +appendu $x<<'EOF' +abc + +*!@#$^&*))0_)()?>> $y + + +diff $x $y || echo check2 failed diffing $x and $y + +output=$(appendu $x "abc +bd" "abc") + +good_output="abc +bd" + +[[ $output == $good_output ]] || { echo check3 failed; echo "$output != $good_output"; } + + -- 2.30.2