Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer projection tests from Zuko #209

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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