From 08e73f9cac39d5e33d5137210bbea15c821560d9 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 14 Jan 2020 21:22:44 -0800 Subject: [PATCH] =?UTF-8?q?Fix=20integration=20test=20for=20=E2=80=98oni-c?= =?UTF-8?q?pp=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The output contains more than just the print statement in the test, but it ends with the result. --- test/integration/oni-cpp.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/oni-cpp.bats b/test/integration/oni-cpp.bats index eb44d17..756fd4a 100644 --- a/test/integration/oni-cpp.bats +++ b/test/integration/oni-cpp.bats @@ -1,11 +1,11 @@ #!/usr/bin/env bats -@test "Opening a .cpp file loads oni-c++" { +@test "Opening a .cpp file loads oni-cpp" { run emacs -batch -l package -f package-initialize \ -visit test.cpp \ -eval "(prin1 (featurep 'oni-cpp))" echo "$output" - [ "$output" = "t" ] + [[ "$output" == *"t" ]] }