Coder Social home page Coder Social logo

gt_ensure uses err about genometools HOT 3 CLOSED

genometools avatar genometools commented on May 29, 2024
gt_ensure uses err

from genometools.

Comments (3)

gordon avatar gordon commented on May 29, 2024

It was designed that way to simplify the unit tests. The error object should always be called err and gt_ensure should only be used in unit tests. The behaviour is fully documented in the developer guide. Therefore, I don't see this as an issue. But if it really bugs you, please submit a pull requests that changes the code and the developer guide accordingly. Otherwise, please close the issue.

from genometools.

Garonenur avatar Garonenur commented on May 29, 2024

It came up while I was writing tests myself and was wondering why I had to add 'had_err' as a parameter but not 'err'.
If its supposed to be as simple as possible I would even remove 'had_err' from the macro and document this in the developer guide.

from genometools.

gordon avatar gordon commented on May 29, 2024

Sounds great! had_err seems to be used consistently in the unit tests.

from genometools.

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.