|
@@ -1602,6 +1602,21 @@
|
|
|
;; When called with one universal argument, insert a new headline at
|
|
|
;; the end of the current subtree, independently on the position of
|
|
|
;; point.
|
|
|
+ (should
|
|
|
+ (equal
|
|
|
+ "* "
|
|
|
+ (org-test-with-temp-text ""
|
|
|
+ (let ((org-insert-heading-respect-content nil))
|
|
|
+ (org-insert-heading '(4)))
|
|
|
+ (buffer-string))))
|
|
|
+ (should
|
|
|
+ (equal
|
|
|
+ "entry
|
|
|
+* "
|
|
|
+ (org-test-with-temp-text "entry"
|
|
|
+ (let ((org-insert-heading-respect-content nil))
|
|
|
+ (org-insert-heading '(4)))
|
|
|
+ (buffer-string))))
|
|
|
(should
|
|
|
(equal
|
|
|
"* H1\n** H2\n* "
|