Re: unit test that show more than one failure

2020-06-15 Thread Andre Pany via Digitalmars-d-learn
On Tuesday, 16 June 2020 at 06:19:51 UTC, Joel wrote: I've tired different unit test libraries, but they jump out on errors instead of just adding to failed numbers. I'm thinking like this: ``` @("dummy"); unittset { 0.shouldEqual(0); 1.shouldEqual(2); 2.shouldEqual(3); } ``` Test: dumm

unit test that show more than one failure

2020-06-15 Thread Joel via Digitalmars-d-learn
I've tired different unit test libraries, but they jump out on errors instead of just adding to failed numbers. I'm thinking like this: ``` @("dummy"); unittset { 0.shouldEqual(0); 1.shouldEqual(2); 2.shouldEqual(3); } ``` Test: dummy test passed line 10: 0 is equal to 0 test failed line

Re: DIP1000 spec?

2020-06-15 Thread Avrina via Digitalmars-d-learn
On Friday, 12 June 2020 at 12:49:08 UTC, Steven Schveighoffer wrote: I was just looking through the DIPs in the system, and noticed that DIP1000 is "superseded". I thought that was odd, since it's in the compiler as a switch and is a major driver of discussion and hope for memory safety. In

Re: Finding the file and unittest that triggers an ICE during dub project build only when unittests are enabled

2020-06-15 Thread Per Nordlöw via Digitalmars-d-learn
On Monday, 15 June 2020 at 16:55:00 UTC, MoonlightSentinel wrote: On Monday, 15 June 2020 at 10:54:47 UTC, Per Nordlöw wrote: What have I missed? My mistake, dub dustmite expects a path to an temporary directory suitable for dustmite (it copies the entire projet + all dependencies s.t. dustm

Re: Finding the file and unittest that triggers an ICE during dub project build only when unittests are enabled

2020-06-15 Thread Per Nordlöw via Digitalmars-d-learn
On Monday, 15 June 2020 at 16:55:00 UTC, MoonlightSentinel wrote: My mistake, dub dustmite expects a path to an temporary directory suitable for dustmite (it copies the entire projet + all dependencies s.t. dustmite sees the entire source code). That path needs to be somewhere outside of the pr

Re: Upcoming refraction module in bolts [was: DUB project type support for Emacs Projectile]

2020-06-15 Thread jmh530 via Digitalmars-d-learn
On Monday, 15 June 2020 at 17:32:26 UTC, Jean-Louis Leroy wrote: [snip] Thanks, cool.

Upcoming refraction module in bolts [was: DUB project type support for Emacs Projectile]

2020-06-15 Thread Jean-Louis Leroy via Digitalmars-d-learn
On Monday, 15 June 2020 at 16:03:08 UTC, jmh530 wrote: On Monday, 15 June 2020 at 13:17:11 UTC, Jean-Louis Leroy wrote: [snip] Nah, I saw it. Well. My take on it has been ready for months but I had to wait for my employer's permission to publish it. They are very open-source friendly, and as

Re: Finding the file and unittest that triggers an ICE during dub project build only when unittests are enabled

2020-06-15 Thread MoonlightSentinel via Digitalmars-d-learn
On Monday, 15 June 2020 at 16:55:00 UTC, MoonlightSentinel wrote: And these unittests trigger the segfault: https://github.com/nordlow/phobos-next/blob/4a18833e226be0d3363fb07f02a7bcf531892e17/src/nxt/cyclic_array.d#L704-L712 https://github.com/nordlow/phobos-next/blob/4a18833e226be0d3363fb07f0

Re: Finding the file and unittest that triggers an ICE during dub project build only when unittests are enabled

2020-06-15 Thread MoonlightSentinel via Digitalmars-d-learn
On Monday, 15 June 2020 at 10:54:47 UTC, Per Nordlöw wrote: What have I missed? My mistake, dub dustmite expects a path to an temporary directory suitable for dustmite (it copies the entire projet + all dependencies s.t. dustmite sees the entire source code). That path needs to be somewhere

Re: DUB project type support for Emacs Projectile

2020-06-15 Thread jmh530 via Digitalmars-d-learn
On Monday, 15 June 2020 at 13:17:11 UTC, Jean-Louis Leroy wrote: [snip] Nah, I saw it. Well. My take on it has been ready for months but I had to wait for my employer's permission to publish it. They are very open-source friendly, and as a consequence there is a glut of requests for open-sour

Re: DUB project type support for Emacs Projectile

2020-06-15 Thread Jean-Louis Leroy via Digitalmars-d-learn
On Sunday, 14 June 2020 at 18:49:01 UTC, jmh530 wrote: On Sunday, 14 June 2020 at 17:19:05 UTC, Jean-Louis Leroy wrote: [snip] In case you missed it, I thought you would find this interesting https://forum.dlang.org/thread/dytpsnkqnmgzniiwk...@forum.dlang.org Nah, I saw it. Well. My take on

Re: Finding the file and unittest that triggers an ICE during dub project build only when unittests are enabled

2020-06-15 Thread Per Nordlöw via Digitalmars-d-learn
On Friday, 12 June 2020 at 21:29:06 UTC, MoonlightSentinel wrote: You could try to reduce your code using Dustmite through dub. This should do the job IIRC: dub dustmite --compiler=dmd --build=unittest --compiler-status=139 See `dub dustmite --help` for more details. The call dub du