Skip to content

Commit

Permalink
Fix spec-failing mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinqian00 committed Jun 20, 2023
1 parent 5ade77c commit 9768961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/main/com/yetanalytics/datasim/sim.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[clojure.core.async :as a]
[clojure.core.async.impl.protocols :as ap]
[java-time :as t]
[xapi-schema.spec :as xs]
[com.yetanalytics.datasim.timeseries :as ts]
[com.yetanalytics.datasim.xapi :as xapi]
[com.yetanalytics.datasim.xapi.profile :as p]
Expand Down Expand Up @@ -44,10 +45,7 @@
;; Based on the probability of activity at a given minute, and an infinite seq
;; of profile walks, emit statements for one actor
(s/def :skeleton/statement-seq
(s/every
;; stubbed - TODO: Reinstate real spec
map?
#_::xs/statement))
(s/every ::xs/statement :kind #(instance? clojure.lang.LazySeq %)))

(s/def ::skeleton
(s/map-of ::xapi/agent-id
Expand Down
2 changes: 1 addition & 1 deletion src/test/com/yetanalytics/datasim/xapi/statement_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
(def valid-args
{:input const/simple-input
:type-iri-map profile-type-iri-map
:activities activities
:activity-map activities
:actor actor
:alignment alignments
:sim-t 0
Expand Down

0 comments on commit 9768961

Please sign in to comment.