summaryrefslogtreecommitdiff
path: root/gnosis-dev.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-29 05:39:29 +0200
committerThanos Apollo <[email protected]>2023-12-29 05:39:29 +0200
commitc5e36a38eee5d2986e6196f90179c08092f830d7 (patch)
treeff0622ca6e26e8ea0a13772ce9f29aea5c9f5e21 /gnosis-dev.el
parent6522d74d8a5225c83869b1ae2737ab71d99ff7a8 (diff)
gnosis-dev: Change default testing values
Diffstat (limited to 'gnosis-dev.el')
-rw-r--r--gnosis-dev.el44
1 files changed, 30 insertions, 14 deletions
diff --git a/gnosis-dev.el b/gnosis-dev.el
index 0a742d7..793c4ee 100644
--- a/gnosis-dev.el
+++ b/gnosis-dev.el
@@ -23,29 +23,45 @@
(defun gnosis-dev-add-fields ()
"Add random inputs to test."
- (dotimes (_ 500)
- (gnosis-add-note-mcq :deck "Anatomy"
- :question "A 37-year-old man is admitted to the
+ (when (y-or-n-p "Add MCQ type?")
+ (dotimes (_ 3)
+ (gnosis-add-note--mcq :deck "Anatomy"
+ :question "A 37-year-old man is admitted to the
emergency department after a severe car crash. After examining the
patient the emergency medicine physician concludes that the serratus
anterior muscle is damaged. Which of the following nerves innervates
the serratus anterior muscle?"
- :choices '("Long thoracic" "Axillary" "Spinal accessory" "Dorsal scapular" "Thoracodorsal")
- :correct-answer 1
- :extra "The long thoracic is the only nerve that
+ :choices '("Long thoracic" "Axillary" "Spinal accessory" "Dorsal scapular" "Thoracodorsal")
+ :correct-answer 1
+ :extra "The long thoracic is the only nerve that
innervates the serratus anterior. The axillary nerve innervates the
deltoid, the spinal accessory nerve innervates the sternocleidomastoid
and trapezius, the dorsal scapular nerve supplies the rhomboid muscles
and levator scapulae, and the latissimus dorsi is the muscle supplied
by the thoracodorsal nerve."
- :tags (gnosis-dev-random-items gnosis-dev-tags 2)))
- (dotimes (_ 500)
- (gnosis-add-note-basic :deck "Anatomy"
- :question "A question"
- :hint "hint"
- :answer "answer"
- :extra "extra"
- :tags (gnosis-dev-random-items gnosis-dev-tags 2))))
+ :tags (gnosis-dev-random-items gnosis-dev-tags 2))))
+ (when (y-or-n-p "Add Basic type questions?")
+ (dotimes (_ 3)
+ (gnosis-add-note--basic :deck "Anatomy"
+ :question "A question"
+ :hint "hint"
+ :answer "answer"
+ :extra "extra"
+ :tags (gnosis-dev-random-items gnosis-dev-tags 2))))
+ (when (y-or-n-p "Add single cloze type?")
+ (dotimes (_ 3)
+ (gnosis-add-note--cloze :deck "Anatomy"
+ :note "this is a {c1:note}"
+ :hint "note"
+ :tags (gnosis-dev-random-items gnosis-dev-tags 2)
+ :extra "extra")))
+ (when (y-or-n-p "Add mulit cloze type?")
+ (dotimes (_ 3)
+ (gnosis-add-note--cloze :deck "Anatomy"
+ :note "this is a {c1:note} with multiple {c1:clozes}"
+ :hint "note"
+ :tags (gnosis-dev-random-items gnosis-dev-tags 2)
+ :extra "extra"))))
(defun gnosis-dev-test ()
"Start testing env."