diff options
| author | Phillip Lord <phillip.lord@newcastle.ac.uk> | 2019-07-21 20:09:42 +0000 |
|---|---|---|
| committer | Phillip Lord <phillip.lord@newcastle.ac.uk> | 2019-07-21 20:09:42 +0000 |
| commit | 883fbfcfe2f6a1a850faa9f366746ba88f7ac6c1 (patch) | |
| tree | fae231c879b5f5a375e9cfbf90feaeb1377727c4 /test | |
| parent | de1e419ae39fa7b1f315ad00cb2671bd976c5d6d (diff) | |
| parent | 0444db69f55c302a6ac0d6ee5c8558ede4d3d09a (diff) | |
| download | org-drill-883fbfcfe2f6a1a850faa9f366746ba88f7ac6c1.tar.gz org-drill-883fbfcfe2f6a1a850faa9f366746ba88f7ac6c1.zip | |
Merge branch 'fix/drill-matching' into 'master'
fix reversed member arguments
See merge request phillord/org-drill!2
Diffstat (limited to 'test')
| -rw-r--r-- | test/one-two-three.org | 2 | ||||
| -rw-r--r-- | test/org-drill-test.el | 18 |
2 files changed, 14 insertions, 6 deletions
diff --git a/test/one-two-three.org b/test/one-two-three.org index a34f905..c1120b6 100644 --- a/test/one-two-three.org +++ b/test/one-two-three.org @@ -1,5 +1,5 @@ -* One :drill: +* One :drill:tagtest: Body of One diff --git a/test/org-drill-test.el b/test/org-drill-test.el index 529d411..eb3c527 100644 --- a/test/org-drill-test.el +++ b/test/org-drill-test.el @@ -38,8 +38,16 @@ (ert-deftest find-entries () (should - (equal '(2 30 58) - (assess-with-find-file - (assess-make-related-file - (concat this-directory "one-two-three.org")) - (org-drill-map-entries (lambda () (point)) 'file nil))))) + (equal '(2 38 66) + (assess-with-find-file + (assess-make-related-file + (concat this-directory "one-two-three.org")) + (org-drill-map-entries (lambda () (point)) 'file nil))))) + +(ert-deftest find-tagged-entries () + (should + (equal '(2) + (assess-with-find-file + (assess-make-related-file + (concat this-directory "one-two-three.org")) + (org-drill-map-entries (lambda () (point)) 'file "tagtest"))))) |
