1 (require 'company-tests)
2 (require 'company-clang)
4 (ert-deftest company-clang-objc-templatify ()
6 (let ((text "createBookWithTitle:andAuthor:"))
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))))))