1
0
Fork 0
emacs-config/test/integration/oni-gui.bats
Tom Willemse dcffe90e3c Test isearch-mode diminishing using a constant
Apparently in the docker container that’s running the tests, reading  from the
command-line makes it a multibyte character (105 776 127 130), but defined in
Emacs it’s a unibyte character (61442). This might have something to do with
UTF-16 vs UTF-8?
2020-04-08 23:48:56 -07:00

31 lines
858 B
Bash

#!/usr/bin/env bats
@test "Opening emacs loads oni-gui" {
run emacs -batch -l package -f package-initialize \
-eval "(prin1 (featurep 'oni-gui))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Opening emacs diminishes isearch-mode" {
run emacs -batch -l package -f package-initialize \
-eval "(prin1 (string= (string ?\s oni-gui-isearch-icon)
(car (alist-get 'isearch-mode minor-mode-alist))))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Reloading isearch diminishes isearch-mode" {
run emacs -batch -l package -f package-initialize \
-eval "(load-library \"isearch\")" \
-eval "(prin1 (string= (string ?\s oni-gui-isearch-icon)
(car (alist-get 'isearch-mode minor-mode-alist))))"
echo "$output"
[[ "$output" == *"t" ]]
}