Giter Site home page Giter Site logo

Comments (2)

Tieske avatar Tieske commented on May 22, 2024

The first example above is not at runtime. At runtime a failure will propagate.
Apparantly (also from the error message above) the compiler executes the assert at compile time because the parameters in the assertion were all constants.

So problem seems to be located in bootstrap, when loading the files and failing compilation.

see below for example (9 failures);

C:\Users\Thijs\Dropbox\Lua projects\busted\luassert>busted spec
+++++++++++xxxxxxxxx+++++++++++
22 successes, 9 failures, and 0 pending in 0.016 seconds.
Failure: ...ua projects\busted\luassert\spec\assertions_spec.lua @ 85
Ensures the Not operator does change the behavior of equals
...ua projects\busted\luassert\spec\assertions_spec.lua:86: luassert: unknown modifier/assertion: 'Not'
Failure: ...ua projects\busted\luassert\spec\assertions_spec.lua @ 89
Checks true() assertion
...ua projects\busted\luassert\spec\assertions_spec.lua:90: luassert: unknown modifier/assertion: 'True'
Failure: ...ua projects\busted\luassert\spec\assertions_spec.lua @ 98
Checks false() assertion
...ua projects\busted\luassert\spec\assertions_spec.lua:99: luassert: unknown modifier/assertion: 'False'
Failure: ...ua projects\busted\luassert\spec\assertions_spec.lua @ 107
Checks boolean() assertion
...ua projects\busted\luassert\spec\assertions_spec.lua:108: luassert: unknown modifier/assertion: 'boolean'
Failure: ...ua projects\busted\luassert\spec\assertions_spec.lua @ 116
Checks number() assertion
...ua projects\busted\luassert\spec\assertions_spec.lua:117: luassert: unknown modifier/assertion: 'number'
Failure: ...ua projects\busted\luassert\spec\assertions_spec.lua @ 125
Checks string() assertion
...ua projects\busted\luassert\spec\assertions_spec.lua:126: luassert: unknown modifier/assertion: 'string'
Failure: ...ua projects\busted\luassert\spec\assertions_spec.lua @ 133
Checks nil() assertion
...ua projects\busted\luassert\spec\assertions_spec.lua:134: luassert: unknown modifier/assertion: 'Nil'
Failure: ...ua projects\busted\luassert\spec\assertions_spec.lua @ 141
Checks function() assertion
...ua projects\busted\luassert\spec\assertions_spec.lua:142: luassert: unknown modifier/assertion: 'Function'
Failure: ...ua projects\busted\luassert\spec\assertions_spec.lua @ 149
Checks userdata() assertion
...ua projects\busted\luassert\spec\assertions_spec.lua:151: luassert: unknown modifier/assertion: 'userdata'
C:\Users\Thijs\Dropbox\Lua projects\busted\luassert>

from busted.

Tieske avatar Tieske commented on May 22, 2024

fixed in master.

from busted.

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.