Giter Club home page Giter Club logo

Comments (3)

jorgenschaefer avatar jorgenschaefer commented on September 28, 2024

Hello, and thanks for the idea! I have thought about this in the past, but I am quite unsure about it. For anything but :to-throw, you really want to see the evaluated value as well. You can always get the original expression by looking at the source, but you have no way of knowing the resulting value.

So you'd end up with a pretty unwieldy error message for most cases.

I agree the situation for :to-throw is not exactly good, though. Maybe #41 can improve that somehow? I'm open for ideas.

Btw, let me know if that's too much feedback in too little time! buttercup is really fun to work with, congratulations on this neat project :)

Thank you for the kind words! I'm of the opinion that it should always be ok to create issues. I might delay answering to some of them, though :-)

from emacs-buttercup.

DarwinAwardWinner avatar DarwinAwardWinner commented on September 28, 2024

To take an example, if I do: (expect (+ 1 1) :to-equal 3), then the failure message is Expected 2 to `equal' 3. What I would like to see is something more like Expected `(+ 1 1)' to `equal' 3 but it was 2 instead. That message has the original expression, the expected value, and the observed value.

from emacs-buttercup.

DarwinAwardWinner avatar DarwinAwardWinner commented on September 28, 2024

I've written some code to implement this in #93.

from emacs-buttercup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.