2020-04-08 20:16:00 +02:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
2020-04-09 08:51:59 +02:00
|
|
|
@test "Loading company loads oni-company" {
|
2020-04-08 20:16:00 +02:00
|
|
|
run emacs -batch -l package -f package-initialize \
|
2020-04-09 08:51:59 +02:00
|
|
|
-l company \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(prin1 (featurep 'oni-company))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|
|
|
|
|
2020-04-09 08:51:59 +02:00
|
|
|
@test "Loading company diminishes company-mode" {
|
|
|
|
run emacs -batch -l package -f package-initialize -l subr-x \
|
|
|
|
-l company \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(prin1 (string-empty-p (car (alist-get 'company-mode minor-mode-alist))))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "Reloading company diminishes company-mode" {
|
2020-04-09 08:51:59 +02:00
|
|
|
run emacs -batch -l package -f package-initialize -l subr-x \
|
|
|
|
-l company \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(load-library \"company\")" \
|
|
|
|
-eval "(prin1 (string-empty-p (car (alist-get 'company-mode minor-mode-alist))))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|
|
|
|
|
2020-04-09 08:51:59 +02:00
|
|
|
@test "Loading company-posframe diminishes company-posframe-mode" {
|
|
|
|
run emacs -batch -l package -f package-initialize -l subr-x \
|
|
|
|
-l company-posframe \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(prin1 (string-empty-p (car (alist-get 'company-posframe-mode minor-mode-alist))))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "Reloading company-posframe diminishes company-posframe-mode" {
|
2020-04-09 08:51:59 +02:00
|
|
|
run emacs -batch -l package -f package-initialize -l subr-x \
|
|
|
|
-l company-posframe \
|
2020-04-08 20:16:00 +02:00
|
|
|
-eval "(load-library \"company-posframe\")" \
|
|
|
|
-eval "(prin1 (string-empty-p (car (alist-get 'company-posframe-mode minor-mode-alist))))"
|
|
|
|
|
|
|
|
echo "$output"
|
|
|
|
|
|
|
|
[[ "$output" == *"t" ]]
|
|
|
|
}
|