On Thursday, 1 September 2016 at 18:11:55 UTC, angel wrote:
If one creates a unittest block in a templated class (or
struct), the unittest block will be multiplied per class
specialization, which might turn out to be quite large number.
E.g.
struct A(T) {
...
unittest {
On Thu, Sep 01, 2016 at 06:11:55PM +, angel via Digitalmars-d wrote:
> If one creates a unittest block in a templated class (or struct), the
> unittest block will be multiplied per class specialization, which
> might turn out to be quite large number.
>
> E.g.
> struct A(T) {
> ...
>
On Thursday, 1 September 2016 at 18:11:55 UTC, angel wrote:
If one creates a unittest block in a templated class (or
struct), the unittest block will be multiplied per class
specialization, which might turn out to be quite large number.
E.g.
struct A(T) {
...
unittest {
If one creates a unittest block in a templated class (or struct),
the unittest block will be multiplied per class specialization,
which might turn out to be quite large number.
E.g.
struct A(T) {
...
unittest {
...
}
}
...
auto a = A!int;
auto b = A!int;
auto c
Hello,every one:
There is a unit test for a.d,it will be pass,do you think it's
right?
or it's my error?
/// the file name is a.d
class Math
{
/// add function
static int add(int x, int y) { return x + y; }
///
unittest
{
// assert(add(2, 2) == 5);
On Tue, 26 Aug 2014 13:38:17 +
FrankLike via Digitalmars-d-learn digitalmars-d-learn@puremagic.com
wrote:
dmd -unittest a.d
so? you compiled the code. but you need to run the resulting .exe to
invoke unittests.
or just use 'rdmd' instead.
signature.asc
Description: PGP signature
On Tuesday, 26 August 2014 at 13:49:39 UTC, ketmar via
Digitalmars-d-learn wrote:
On Tue, 26 Aug 2014 13:38:17 +
FrankLike via Digitalmars-d-learn
digitalmars-d-learn@puremagic.com
wrote:
dmd -unittest a.d
so? you compiled the code. but you need to run the resulting
.exe to
invoke