From 81d05688761483de813c1b1154dbee09bb1e17a6 Mon Sep 17 00:00:00 2001 From: Marcus Rohrmoser Date: Wed, 18 May 2016 23:07:16 +0200 Subject: [PATCH] =?utf8?q?.=F0=9F=90=A0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tests/test-atom-empty.sh | 2 +- tests/test-title.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-atom-empty.sh b/tests/test-atom-empty.sh index f5fc058..0f0e0e0 100644 --- a/tests/test-atom-empty.sh +++ b/tests/test-atom-empty.sh @@ -25,4 +25,4 @@ xmllint --version 2> /dev/null || assert_fail 102 "I need xmllint (libxml2)." curl --silent --show-error --output "curl.tmp.atom" "${BASE_URL}/?do=atom" entries=$(xmllint --xpath 'count(/*/*[local-name()="entry"])' "curl.tmp.atom") -[ "${entries}" -eq 1 ] || assert_fail 2 "expected exactly one " +assert_equal 1 "${entries}" 28 "expected exactly one " diff --git a/tests/test-title.sh b/tests/test-title.sh index 32420b1..e0c14e3 100644 --- a/tests/test-title.sh +++ b/tests/test-title.sh @@ -30,4 +30,4 @@ curl --url "${BASE_URL}" \ 2>/dev/null title="$(xmllint --html --xpath 'normalize-space(string(/html/body//*[@id="shaarli_title"]))' curl.html 2>/dev/null)" -[ "Review Shaarli" = "${title}" ] || assert_fail 2 "expected 'Review Shaarli' found '${title}'" +assert_equal "Review Shaarli" "${title}" 33 "expected 'Review Shaarli' found '${title}'" -- 2.11.4.GIT