Hi,
On 19/09/2026 12:40, Ihor Radchenko wrote:
"Pedro A. Aranda" <[email protected]> writes:
Hi,
test-org-tests/find-duplicates
is yelling at me with a perfectly valid test:
This is expected false-positive.
You technically do have duplicate statements in the test:
(goto-char (point-min))
...
(should (search-forward-regexp "^100 & test"))
...
(should (search-forward-regexp "^100 & test"))))
That's what the duplicate detector complains about.
Hmmm... Then I think I have a misconception here. I read it as
"there is no assumption about the starting point of either call
to search-forward-regexp". What am I not understanding here?
Where is the point (if there is such) before and after calling
`search-forward-regexp'?
As suggested in the failure message, you can use
`org-test-ignore-duplicate' to suppress this false-positive failure.
Does this imply that `org-test-ignore-duplicate' assumes the point
is after the match?
Thx for further clarifications, /PA
--
Pedro A. Aranda
ox-latex & ox-beamer maintainer
Sagen's Paradeiser! (ORF: Als Radiohören gefährlich war) => write BE!
IA: onomatopeya del rebuzno
2nd year of the New Koprocracy