mirror of https://github.com/aria2/aria2
2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed syntax error * test/SequenceTest.ccpull/1/head
parent
1dc88d47ab
commit
9d66150a83
|
@ -1,3 +1,8 @@
|
||||||
|
2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Fixed syntax error
|
||||||
|
* test/SequenceTest.cc
|
||||||
|
|
||||||
2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
|
Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
|
||||||
|
|
|
@ -28,7 +28,7 @@ void SequenceTest::testParseAndNext()
|
||||||
IntSequence::Value(3, 9),
|
IntSequence::Value(3, 9),
|
||||||
IntSequence::Value(10, 11),
|
IntSequence::Value(10, 11),
|
||||||
};
|
};
|
||||||
IntSequence seq(IntSequence::Values(¶ms[0], ¶ms[3]));
|
IntSequence seq = IntSequence(IntSequence::Values(¶ms[0], ¶ms[3]));
|
||||||
CPPUNIT_ASSERT(seq.hasNext());
|
CPPUNIT_ASSERT(seq.hasNext());
|
||||||
CPPUNIT_ASSERT_EQUAL((int32_t)1, seq.next());
|
CPPUNIT_ASSERT_EQUAL((int32_t)1, seq.next());
|
||||||
CPPUNIT_ASSERT(seq.hasNext());
|
CPPUNIT_ASSERT(seq.hasNext());
|
||||||
|
@ -55,7 +55,7 @@ void SequenceTest::testParseAndNext2()
|
||||||
IntSequence::Value params[] = {
|
IntSequence::Value params[] = {
|
||||||
IntSequence::Value(1, 2),
|
IntSequence::Value(1, 2),
|
||||||
};
|
};
|
||||||
IntSequence seq(IntSequence::Values(¶ms[0], ¶ms[1]));
|
IntSequence seq = IntSequence(IntSequence::Values(¶ms[0], ¶ms[1]));
|
||||||
CPPUNIT_ASSERT(seq.hasNext());
|
CPPUNIT_ASSERT(seq.hasNext());
|
||||||
CPPUNIT_ASSERT_EQUAL((int32_t)1, seq.next());
|
CPPUNIT_ASSERT_EQUAL((int32_t)1, seq.next());
|
||||||
CPPUNIT_ASSERT(!seq.hasNext());
|
CPPUNIT_ASSERT(!seq.hasNext());
|
||||||
|
@ -70,7 +70,7 @@ void SequenceTest::testFlush()
|
||||||
IntSequence::Value(3, 9),
|
IntSequence::Value(3, 9),
|
||||||
IntSequence::Value(10, 11),
|
IntSequence::Value(10, 11),
|
||||||
};
|
};
|
||||||
IntSequence seq(IntSequence::Values(¶ms[0], ¶ms[3]));
|
IntSequence seq = IntSequence(IntSequence::Values(¶ms[0], ¶ms[3]));
|
||||||
deque<int32_t> r = seq.flush();
|
deque<int32_t> r = seq.flush();
|
||||||
|
|
||||||
int32_t answers[] = { 1, 3, 4, 5, 6, 7, 8, 10 };
|
int32_t answers[] = { 1, 3, 4, 5, 6, 7, 8, 10 };
|
||||||
|
|
Loading…
Reference in New Issue