Tom Willemse
dcffe90e3c
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?
31 lines
858 B
Bash
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" ]]
|
|
}
|