Skip to content

Commit 39c95c6

Browse files
committed
test: fix tests with newer snippets for C# with company-complete
also fix run-tests.sh when tests are ok
1 parent 394dad8 commit 39c95c6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ fi
1818
mkdir -p test-cache/emacs-d-cache
1919

2020
docker-compose build
21-
docker-compose run --rm regular-tests && "echo Tests ran OK" || echo "Tests FAILED!"
21+
docker-compose run --rm regular-tests && echo "Tests ran OK" || echo "Tests FAILED!"

test/buttercup-tests/auto-complete/auto-complete-company-test.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@
6969
(ot--type "new object()")
7070
(ot--press-key "TAB"))
7171

72-
(ot--buffer-should-contain "object.Equals(this, new object())")))
72+
(ot--buffer-should-contain "object.Equals(t, object objB)")))

test/buttercup-tests/setup.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
(let ((expected (s-join "\n" expected))
5050
(actual (s-replace (string ?\C-m) (string ?\C-j)
5151
(substring-no-properties (buffer-string))))
52-
(message "Expected '%s' to be part of '%s', but was not."))
53-
(cl-assert (s-contains? expected actual) nil (format message expected actual))))
52+
(message "Expected '%s' to be part of '%s', but was not. Actual contents are: '%s'"))
53+
(cl-assert (s-contains? expected actual) nil (format message expected actual (substring-no-properties (buffer-string))))))
5454

5555
(defun ot--evaluate (command-to-execute)
5656
(eval (read command-to-execute)))

0 commit comments

Comments
 (0)