Re: unit test that show more than one failure

2020-06-16 Thread Dukc 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

Re: unit test that show more than one failure

2020-06-16 Thread Joel via Digitalmars-d-learn
On Tuesday, 16 June 2020 at 07:39:20 UTC, Luis wrote: On Tuesday, 16 June 2020 at 06:19:51 UTC, Joel wrote: [...] I understand that where the trivial test code is placed, must be something more complex being tested. @("dummy test 1"); unittest { /// Some test code that runs fine } @("du

Re: unit test that show more than one failure

2020-06-16 Thread Luis 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

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