aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-04-08 17:01:04 -0700
committerGravatar Tom Willemse2021-04-08 17:01:04 -0700
commit9d51fae47bec93ee93ed7d32ab0b9d11a46e52ec (patch)
tree1c0580a4967ffa75017eaa09d5e223832ef2ecae /test
parentdab6d0bd70e975334a356d831f5639a75c7e1a18 (diff)
downloademacs-config-9d51fae47bec93ee93ed7d32ab0b9d11a46e52ec.tar.gz
emacs-config-9d51fae47bec93ee93ed7d32ab0b9d11a46e52ec.zip
[oni-scheme] Check that the output ends with the expected text
All of the other tests already check that the output ends with the expected output and isn’t exactly equal to it. This is because I don’t have enough control over (or don’t know enough about) the output Emacs and other packages generate. In order to prevent false-positives from happening as is happening with ‘scheme-mode’, I don’t check what’s before the output I expect. The false-positive that’s happening with ‘scheme-mode’ is an issue that it seems like ‘geiser’ has started complaining that it can’t find ‘guile’, which is expected.
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/oni-scheme.bats4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/oni-scheme.bats b/test/integration/oni-scheme.bats
index 3bd9ec4..873ae57 100755
--- a/test/integration/oni-scheme.bats
+++ b/test/integration/oni-scheme.bats
@@ -7,7 +7,7 @@
echo "$output"
- [ "$output" = "t" ]
+ [[ "$output" == *"t" ]]
}
@test "Opening a file with the SCSH interpreter loads scheme-mode" {
@@ -23,5 +23,5 @@
echo "$output"
- [ "$output" = "scheme-mode" ]
+ [[ "$output" == *"scheme-mode" ]]
}