Comments (6)
It is confirmed that this is the cause of the problem (I remove such Assert calls in the sharedStaticCtor call path, it works now).
I'm currently working on a better solution to it
As I suggested: for now, maybe just issue a warning message, and ignore such assert? (it should be detectable: just check a flag that fluent-asserts is not fully init-ed).
from fluent-asserts.
Would it be possible to share the test/project that triggers this error? also, the compiler version would also be helpful to know.
from fluent-asserts.
Actually I think I found the problem:
In one of my own sharedStaticCtor, some function called Assert.equal()
, I think maybe it means the fluent-asserts has not be fully init-ed yet?
Maybe in this case, all such Assert should be just ignored.
(I will try to remove such Assert, and see what happens).
from fluent-asserts.
yes, to improve the integration with the Trial test runner, I had to introduce some global states. It's better not to have asserts in a module constructor. I'm currently working on a better solution to it, but I don't have enough time...
from fluent-asserts.
Related Issues (20)
- v1.0.0 Assert.equal(double, int literal) behave different from v0.13.3 HOT 2
- v1.0.0 cannot Assert.lessThan(std.checkedint, std.checkedint); while v0.13.3 can
- exception with message does not show the right sourcecode
- the HTTP Request has the port 0 HOT 1
- Comparing const array of classes gives compile error HOT 3
- should.containOnly and should.equal fail on a range of ranges
- Deprecation of `this` as a Type HOT 2
- Dependencies Fail to Build with Fluent Asserts 0.12.3 & DMD v2.083.1 HOT 2
- should() for std.range.interfaces.InputRange returns ShouldObject
- Move vibe.d support to a separate package HOT 3
- Should fails when trying to compare std.container.array Ranges. HOT 2
- why the stack trace removed ? can we add it back? HOT 11
- feature request: add func to report total count of assertion failure, Assert.count()?
- no notLessThan for 2 strings? also no Assert.greaterEqualThan, Assert.lessEqualThan? HOT 5
- is there a build config string, that will turn off all asserts into no-op? HOT 4
- strange error message: results.d(1192): Range violation
- Comparing Arrays does (sometimes) not work. Problem with Objects? HOT 4
- throwException!T.original returns different Type in 0.14 alpha HOT 4
- opEquals() is not honoured with 0.14 alpha 8 HOT 4
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 fluent-asserts.