another test for travis
This commit is contained in:
parent
b22f72374a
commit
6489d7bad4
|
|
@ -89,7 +89,7 @@ AbstractFieldPhraseOperatorField(<=, PhraseData::LessEqual)
|
|||
AbstractFieldPhraseOperatorField(> , PhraseData::Greater)
|
||||
AbstractFieldPhraseOperatorField(>=, PhraseData::GreaterEqual)
|
||||
|
||||
AbstractFieldPhrase AbstractFieldPhrase::operator !()
|
||||
AbstractFieldPhrase AbstractFieldPhrase::operator ~()
|
||||
{
|
||||
AbstractFieldPhrase f(data->className, data->fieldName);
|
||||
f.data->isNot = !data->isNot;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public:
|
|||
ConditionalPhrase operator <=(const AbstractFieldPhrase &other);
|
||||
ConditionalPhrase operator >=(const AbstractFieldPhrase &other);
|
||||
|
||||
AbstractFieldPhrase operator !();
|
||||
AbstractFieldPhrase operator ~();
|
||||
AssignmentPhrase operator =(const QVariant &other);
|
||||
AssignmentPhrase operator =(const ConditionalPhrase &other);
|
||||
AssignmentPhrase operator <<(const QVariant &other);
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@ win32 {
|
|||
CONFIG(debug,debug|release): LIBDIR = $$absolute_path($$OUT_PWD/../../src/debug)
|
||||
CONFIG(release,debug|release): LIBDIR = $$absolute_path($$OUT_PWD/../../src/release)
|
||||
} else {
|
||||
CONFIG(debug,debug|release): LIBDIR = $$absolute_path($$OUT_PWD/../../debug)
|
||||
CONFIG(release,debug|release): LIBDIR = $$absolute_path($$OUT_PWD/../../release)
|
||||
LIBDIR = $$absolute_path($$OUT_PWD/../../src)
|
||||
}
|
||||
LIBS += -L$$LIBDIR -lnut
|
||||
|
||||
|
|
|
|||
|
|
@ -117,29 +117,33 @@ void MainTest::mix()
|
|||
FieldPhrase<QString> lastName("", "");
|
||||
FieldPhrase<QDate> birthDate("", "");
|
||||
|
||||
select(id);
|
||||
select(id | name | lastName);
|
||||
// update((name = "john") | (lastName = "snow"));
|
||||
|
||||
update((name = "john") & (lastName = "snow"));
|
||||
insert(id = 0);
|
||||
insert((id = 4) & (name = "john"));
|
||||
order_by(id);
|
||||
order_by(id | ~name);
|
||||
}
|
||||
|
||||
void MainTest::select(const PhraseList &ph)
|
||||
{
|
||||
|
||||
QTEST_ASSERT(ph.data.count());
|
||||
}
|
||||
|
||||
void MainTest::where(const ConditionalPhrase &ph)
|
||||
{
|
||||
|
||||
QTEST_ASSERT(ph.data);
|
||||
}
|
||||
|
||||
void MainTest::update(const AssignmentPhraseList &p)
|
||||
{
|
||||
|
||||
QTEST_ASSERT(p.data.count());
|
||||
}
|
||||
|
||||
void MainTest::insert(const AssignmentPhraseList &p)
|
||||
{
|
||||
|
||||
QTEST_ASSERT(p.data.count());
|
||||
}
|
||||
|
||||
void MainTest::order_by(const PhraseList &ph)
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ private slots:
|
|||
void boolean();
|
||||
void datetime();
|
||||
void extra();
|
||||
void mix();
|
||||
|
||||
private:
|
||||
void select(const Nut::PhraseList &ph);
|
||||
|
|
|
|||
Loading…
Reference in New Issue