1
0
Fork 0

Fix integration test for ‘oni-cpp’

The output contains more than just the print statement in the test, but it ends
with the result.
This commit is contained in:
Tom Willemse 2020-01-14 21:22:44 -08:00
parent 78cf5cb514
commit 08e73f9cac

View file

@ -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" ]]
}