11 lines
238 B
Bash
11 lines
238 B
Bash
#!/usr/bin/env bats
|
|
|
|
@test "Opening a .cpp file loads oni-c++" {
|
|
run emacs -batch -l package -f package-initialize \
|
|
-visit test.cpp \
|
|
-eval "(prin1 (featurep 'oni-c++))"
|
|
|
|
echo "$output"
|
|
|
|
[ "$output" = "t" ]
|
|
}
|