Comments (2)
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.
fixed in master.
from busted.
Related Issues (20)
- Can't install dependency of busted via luarocks HOT 1
- Can't install dependency 'mediator_lua' of busted via luarocks HOT 2
- Lua
- bad release HOT 1
- Can't install/run on Windows 10 HOT 3
- Garbled characters in output HOT 4
- Wrong `LUAROCKS_SYSCONFDIR` in `busted.bat` HOT 1
- `package.moonpath` is never updated which breaks Moonscript module requirements HOT 1
- [feature request] Support clean up function for it() HOT 4
- Async documented but not functional HOT 1
- [question] how to pass argument to function when trying to catch errors HOT 2
- [help needed] fails to execute as a standalone file HOT 2
- the comand line argument with space will be split when use --lua
- Fails to encode results to json due to non-string error objects being raised
- [Feature Request] Could we introduce a new context for ordered tests? HOT 11
- Make it easier to run a global before_each before all before_each blocks or a global after_each after all after_each blocks HOT 1
- Make it easier to run a global before_each before all before_each blocks or a global after_each after all after_each blocks HOT 1
- Fennel loader? HOT 2
- Bug? Loader applied to wrong language
- Teee HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from busted.