Giter Site home page Giter Site logo

Add macros for _assert* about ltest HOT 14 CLOSED

lfex avatar lfex commented on September 17, 2024
Add macros for _assert*

from ltest.

Comments (14)

oubiwann avatar oubiwann commented on September 17, 2024 2

This is why I value the Great Path of the Shaven Yak so highly :-) The road may not be direct -- nor easy -- but is has the power to give us better software if followed well and truly ... !

cc @cemerick

meta-yak

from ltest.

oubiwann avatar oubiwann commented on September 17, 2024

I think this is a good idea -- you ready for a PR?

from ltest.

yurrriq avatar yurrriq commented on September 17, 2024

I don't have anything prepared yet. Also, I'm not sold on the gen- naming scheme. Do you have a better idea?

from ltest.

rvirding avatar rvirding commented on September 17, 2024

Do you really need them? They just rename other macros. How about calling then assert-equal and assert-error?

from ltest.

yurrriq avatar yurrriq commented on September 17, 2024

@rvirding, we have those, but I need the _-prefixed ones, for writing test generators. It's totally a cosmetic concern to add lispy aliases. (_assertEqual this that) looks bad to me. 😈

from ltest.

yurrriq avatar yurrriq commented on September 17, 2024

Oh hey! What about assert-equal* to follow the * naming scheme for alternates?

from ltest.

rvirding avatar rvirding commented on September 17, 2024

Can you be consistent with the names? You could do assert-gen-equal and assert-gen-error. Consistent and explicit but maybe a bit long. Or not. Or assert-equal-gen and assert-error-gen?

from ltest.

rvirding avatar rvirding commented on September 17, 2024

If you used assert-equal* etc then all the generator macros would have to end in '*', our version of starting with a '_'.

from ltest.

yurrriq avatar yurrriq commented on September 17, 2024

Right. That's what I was thinking. We can do postfix * for EUnit's prefix _.

from ltest.

yurrriq avatar yurrriq commented on September 17, 2024

I'm gonna do a PR while it's fresh in my mind, but then I'm really gonna work on lmug. 😄

from ltest.

oubiwann avatar oubiwann commented on September 17, 2024

Nice! (to both)

On Sun, Mar 20, 2016 at 12:46 PM, Eric Bailey [email protected]
wrote:

I'm gonna do a PR while it's fresh in my mind, but then I'm really gonna
work on lmug. [image: 😄]


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#36 (comment)

from ltest.

yurrriq avatar yurrriq commented on September 17, 2024

Ok, so this got messier than I thought. I actually found a bug in the current version of Lodox when trying to generate ltest documentation...

There's also apparently a breaking change in EUnit somewhere around R18. I've separated the concerns into branches and develop has them all merged. The tests are green on my develop branch, but I still have to write/update generator tests.

from ltest.

oubiwann avatar oubiwann commented on September 17, 2024

I said it in PR #37 and I'll say it here: well done, @yurrriq! Great changes!

from ltest.

yurrriq avatar yurrriq commented on September 17, 2024

🎉 Cheers!

from ltest.

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.