Tom Willemse
08e73f9cac
The output contains more than just the print statement in the test, but it ends with the result.
11 lines
242 B
Bash
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" ]]
|
|
}
|