From 08e73f9cac39d5e33d5137210bbea15c821560d9 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 14 Jan 2020 21:22:44 -0800 Subject: Fix integration test for ‘oni-cpp’ 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" ]] } -- cgit v1.2.3-54-g00ecf