Skip to content

Comments

Transfer projection tests from Zuko#209

Open
noprompt wants to merge 2 commits intomainfrom
transfer-projection-tests-from-zuko
Open

Transfer projection tests from Zuko#209
noprompt wants to merge 2 commits intomainfrom
transfer-projection-tests-from-zuko

Conversation

@noprompt
Copy link
Contributor

@noprompt noprompt commented Aug 6, 2021

No description provided.

(t/is (= [[6 4 3] [12 10 9]] (projection/project-results {} selection columns data)))

(let [mdata (with-meta data {:cols columns})]
(t/is (= [[6 4 3] [12 10 9]] (projection/project {} selection mdata))))))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work to say:

(t/is (thrown-with-msg? ExceptionInfo
                        #"Projection variable not in the selected data: \?d"
                        (projection/project-results {} '[?a ?d ?c] mdata)))

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants