init-ert.el 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ;;; Code:
  2. (use-package s )
  3. (require 'ert)
  4. ;; this test checks to see if my C-c . keybindings work
  5. (ert-deftest C-c-keybindings ()
  6. (should (not (equal nil
  7. (s-match "org-capture" (describe-key-briefly (kbd "C-c c"))))))
  8. (should (not (equal nil
  9. (s-match "helm-M-x" (describe-key-briefly (kbd "C-c e"))))))
  10. (should (not (equal nil
  11. (s-match "helm-swoop" (describe-key-briefly (kbd "C-c /"))))))
  12. (should (not (equal nil
  13. (s-match "helm-swoop" (describe-key-briefly (kbd "C-c /"))))))
  14. (should (not (equal nil
  15. (s-match "indent-whole-buffer" (describe-key-briefly (kbd "C-c TAB"))))))
  16. (should (not (equal nil
  17. (s-match "delete-horizontal-space" (describe-key-briefly (kbd "C-c \\"))))))
  18. (should (not (equal nil
  19. (s-match "just-one-space" (describe-key-briefly (kbd "C-c SPC"))))))
  20. (should (not (equal nil
  21. (s-match "helm-swoop" (describe-key-briefly (kbd "C-c /"))))))
  22. (should (not (equal nil
  23. (s-match "rg-agenda" (describe-key-briefly (kbd "C-c a"))))))
  24. (should (not (equal nil
  25. (s-match "eval-buffer" (describe-key-briefly (kbd "C-c b"))))))
  26. (should (not (equal nil
  27. (s-match "browse-kill-ring" (describe-key-briefly (kbd "C-c B"))))))
  28. (should (not (equal nil
  29. (s-match "hydra-org-timer/body" (describe-key-briefly (kbd "C-c C"))))))
  30. (should (not (equal nil
  31. (s-match "org-capture" (describe-key-briefly (kbd "C-c c"))))))
  32. (should (not (equal nil
  33. (s-match "dired-jump" (describe-key-briefly (kbd "C-c d"))))))
  34. (should (not (equal nil
  35. (s-match "ggtags-find-tag-dwim" (describe-key-briefly (kbd "C-c D"))))))
  36. (should (not (equal nil
  37. (s-match "helm-M-x" (describe-key-briefly (kbd "C-c e"))))))
  38. (should (not (equal nil
  39. (s-match "eshell" (describe-key-briefly (kbd "C-c E"))))))
  40. (should (not (equal nil
  41. (s-match "isearch-forward-regexp" (describe-key-briefly (kbd "C-c f"))))))
  42. (should (not (equal nil
  43. (s-match "isearch-backward-regexp" (describe-key-briefly (kbd "C-c F"))))))
  44. (should (not (equal nil
  45. (s-match "gnus" (describe-key-briefly (kbd "C-c g"))))))
  46. (should (not (equal nil
  47. (s-match "helm-command-prefix" (describe-key-briefly (kbd "C-c h"))))))
  48. (should (not (equal nil
  49. (s-match "info-display-manual" (describe-key-briefly (kbd "C-c i"))))))
  50. (should (not (equal nil
  51. (s-match "eval-last-sexp" (describe-key-briefly (kbd "C-c l"))))))
  52. (should (not (equal nil
  53. (s-match "org-store-link" (describe-key-briefly (kbd "C-c L"))))))
  54. (should (not (equal nil
  55. (s-match "org-insert-link" (describe-key-briefly (kbd "C-c I"))))))
  56. (should (not (equal nil
  57. (s-match "helm-mini" (describe-key-briefly (kbd "C-c m"))))))
  58. (should (not (equal nil
  59. (s-match "maybe-move-word-at-point" (describe-key-briefly (kbd "C-x m")))))))
  60. (provide 'init-ert)