aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-01-14 21:22:44 -0800
committerGravatar Tom Willemse2020-01-14 21:25:32 -0800
commit08e73f9cac39d5e33d5137210bbea15c821560d9 (patch)
treea07a8044ccbcd1611c849296122cf3f071990309
parent78cf5cb514c90288fb611a7b54f0401ce399ee6e (diff)
downloademacs-config-08e73f9cac39d5e33d5137210bbea15c821560d9.tar.gz
emacs-config-08e73f9cac39d5e33d5137210bbea15c821560d9.zip
Fix integration test for ‘oni-cpp’
The output contains more than just the print statement in the test, but it ends with the result.
-rw-r--r--test/integration/oni-cpp.bats4
1 files 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" ]]
}