2020-05-03 03:32:01 +02:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
2020-05-11 09:33:38 +02:00
|
|
|
@test "Opening a .bat file loads oni-bat" {
|
2020-05-03 03:32:01 +02:00
|
|
|
run emacs -batch -l package -f package-initialize \
|
2020-05-11 09:33:38 +02:00
|
|
|
-visit test.bat \
|
|
|
|
-eval "(prin1 (featurep 'oni-bat))"
|
2020-05-03 03:32:01 +02:00
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|