From 9d51fae47bec93ee93ed7d32ab0b9d11a46e52ec Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 8 Apr 2021 17:01:04 -0700 Subject: [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. --- test/integration/oni-scheme.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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" ]] } -- cgit v1.2.3-54-g00ecf