fix: latex-environment belongs to paragraph
All checks were successful
build / build (push) Successful in 5s

wip: feat: org-element specs
This commit was merged in pull request #15.
This commit is contained in:
2026-03-08 20:06:02 -06:00
parent 2198b5f409
commit 1629efb378
11 changed files with 377 additions and 22 deletions

27
doerg/scratch.clj Normal file
View File

@@ -0,0 +1,27 @@
(ns scratch
(:require [clojure.spec.alpha :as s]
[spec-dict.main :refer [dict]]
[clojure.test.check.generators :as gen]))
(defmulti node-spec :type)
(s/def ::node
(s/multi-spec node-spec :type))
(s/def ::children (s/coll-of ::node :kind vector?))
(s/def ::value nat-int?)
(defmethod node-spec :branch [_]
(dict {:children ::children})
#_(s/keys :req-un [::children]))
(defmethod node-spec :leaf [_]
(dict {:value ::value})
#_
(s/keys :req-un [::value]))
(comment
(binding [s/*recursion-limit* 1]
(gen/generate (s/gen ::node))))