]> code.delx.au - gnu-emacs-elpa/blob - test/clang-tests.el
4d23a299c9458a9a81e5d0b791957d8784756dc2
[gnu-emacs-elpa] / test / clang-tests.el
1 (require 'company-tests)
2 (require 'company-clang)
3
4 (ert-deftest company-clang-objc-templatify ()
5 (with-temp-buffer
6 (let ((text "createBookWithTitle:andAuthor:"))
7 (insert text)
8 (company-clang-objc-templatify text)
9 (should (equal "createBookWithTitle:arg0 andAuthor:arg1" (buffer-string)))
10 (should (looking-at "arg0"))
11 (should (null (overlay-get (company-template-field-at) 'display))))))