2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Fixed syntax error
	* test/SequenceTest.cc
pull/1/head
Tatsuhiro Tsujikawa 2007-11-25 11:57:17 +00:00
parent 1dc88d47ab
commit 9d66150a83
2 changed files with 8 additions and 3 deletions

View File

@ -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>
Return false if RequestGroup::isPreLocalFileCheckEnabled() == true

View File

@ -28,7 +28,7 @@ void SequenceTest::testParseAndNext()
IntSequence::Value(3, 9),
IntSequence::Value(10, 11),
};
IntSequence seq(IntSequence::Values(&params[0], &params[3]));
IntSequence seq = IntSequence(IntSequence::Values(&params[0], &params[3]));
CPPUNIT_ASSERT(seq.hasNext());
CPPUNIT_ASSERT_EQUAL((int32_t)1, seq.next());
CPPUNIT_ASSERT(seq.hasNext());
@ -55,7 +55,7 @@ void SequenceTest::testParseAndNext2()
IntSequence::Value params[] = {
IntSequence::Value(1, 2),
};
IntSequence seq(IntSequence::Values(&params[0], &params[1]));
IntSequence seq = IntSequence(IntSequence::Values(&params[0], &params[1]));
CPPUNIT_ASSERT(seq.hasNext());
CPPUNIT_ASSERT_EQUAL((int32_t)1, seq.next());
CPPUNIT_ASSERT(!seq.hasNext());
@ -70,7 +70,7 @@ void SequenceTest::testFlush()
IntSequence::Value(3, 9),
IntSequence::Value(10, 11),
};
IntSequence seq(IntSequence::Values(&params[0], &params[3]));
IntSequence seq = IntSequence(IntSequence::Values(&params[0], &params[3]));
deque<int32_t> r = seq.flush();
int32_t answers[] = { 1, 3, 4, 5, 6, 7, 8, 10 };