Skip to content

Commit

Permalink
Merge pull request #19 from llJochemll/next
Browse files Browse the repository at this point in the history
Fix build error
  • Loading branch information
llJochemll authored Jan 4, 2020
2 parents cd18a88 + d800804 commit 8c22a36
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 44 deletions.
6 changes: 3 additions & 3 deletions dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"botan-math": "1.0.3",
"ddmp": "0.0.1-0.dev.3",
"diet-ng": "1.6.0",
"eventcore": "0.8.46",
"eventcore": "0.8.48",
"fluent-asserts": "0.12.5",
"libasync": "0.8.4",
"libdparse": "0.8.8",
Expand All @@ -14,8 +14,8 @@
"mir-linux-kernel": "1.0.1",
"openssl": "1.1.6+1.0.1g",
"stdx-allocator": "2.77.5",
"taggedalgebraic": "0.11.4",
"vibe-core": "1.7.0",
"taggedalgebraic": "0.11.8",
"vibe-core": "1.8.1",
"vibe-d": "0.8.6"
}
}
84 changes: 43 additions & 41 deletions source/quirks/internal/test.d
Original file line number Diff line number Diff line change
@@ -1,51 +1,53 @@
module quirks.internal.test;

public import fluent.asserts;

struct TestStruct {
static long classifier;

long id;
int age;

static TestStruct create() {
return TestStruct();
version (unittest) {
public import fluent.asserts;

struct TestStruct {
static long classifier;

long id;
int age;

static TestStruct create() {
return TestStruct();
}

string name() {
return "name";
}
void update() { }
void update(bool force) { }
} unittest {
TestStruct s;

s.create.should.not.throwAnyException;
s.name.should.equal("name");
s.update.should.not.throwAnyException;
s.update(false).should.not.throwAnyException;
}

string name() {
return "name";
}
void update() { }
void update(bool force) { }
} unittest {
TestStruct s;

s.create.should.not.throwAnyException;
s.name.should.equal("name");
s.update.should.not.throwAnyException;
s.update(false).should.not.throwAnyException;
}
class TestClass {
static long classifier;

class TestClass {
static long classifier;
long id;
int age;

long id;
int age;
static TestClass create() {
return new TestClass();
}

static TestClass create() {
return new TestClass();
}
string name() {
return "name";
}
void update() { }
void update(bool force) { }
} unittest {
auto c = new TestClass;

string name() {
return "name";
c.create.should.not.throwAnyException;
c.name.should.equal("name");
c.update.should.not.throwAnyException;
c.update(false).should.not.throwAnyException;
}
void update() { }
void update(bool force) { }
} unittest {
auto c = new TestClass;

c.create.should.not.throwAnyException;
c.name.should.equal("name");
c.update.should.not.throwAnyException;
c.update(false).should.not.throwAnyException;
}

0 comments on commit 8c22a36

Please sign in to comment.