We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(tests (p/run (! (p/for [x ~(m/watch input)] x))) % := [1] (reset! input [1 2]) % := [1 2] ;; FAIL )
Syntax idea: % := [1 2] :! [1], which indicates desired expectation simultaneously with known current expected error.
% := [1 2] :! [1]
Perhaps % :! [1 2] ; [1] is sufficient?
% :! [1 2] ; [1]
The text was updated successfully, but these errors were encountered:
This works in master, obviously could be a lot tighter
(defmethod t/assert-expr :hyperfiddle.rcf/fails? [msg form] (let [[_= & args] form form (cons ::fails? (map impl/original-form args))] `(let [lhs# (identity ~(first args)) ; (identity …) guards against :clojure.spec.alpha/invalid being passed to `let` macroexpansion rhs# (identity ~(second args)) [result# env#] (u/unifier* lhs# rhs#)] (if (u/failed? env#) (do (do-report {:type :hyperfiddle.rcf/pass :message ~msg, :expected '~form :actual result#}) result#) (do (do-report {:type :hyperfiddle.rcf/fail :message ~msg, :expected '~form :actual (u/explain env#)}) lhs#)))))
Sorry, something went wrong.
No branches or pull requests
Syntax idea:
% := [1 2] :! [1]
, which indicates desired expectation simultaneously with known current expected error.Perhaps
% :! [1 2] ; [1]
is sufficient?The text was updated successfully, but these errors were encountered: