1
0
Fork 0
emacs-config/test/integration/oni-cpp.bats
Tom Willemse 08e73f9cac Fix integration test for ‘oni-cpp’
The output contains more than just the print statement in the test, but it ends
with the result.
2020-01-14 21:25:32 -08:00

11 lines
242 B
Bash

#!/usr/bin/env bats
@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" ]]
}