|
From: <jfb...@us...> - 2009-03-05 16:14:07
|
Revision: 998
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=998&view=rev
Author: jfbastien
Date: 2009-03-05 16:13:57 +0000 (Thu, 05 Mar 2009)
Log Message:
-----------
Use MaxString<String>::value instead of 1000.
Modified Paths:
--------------
trunk/test/flex_string/main.cpp
Modified: trunk/test/flex_string/main.cpp
===================================================================
--- trunk/test/flex_string/main.cpp 2009-03-05 12:21:52 UTC (rev 997)
+++ trunk/test/flex_string/main.cpp 2009-03-05 16:13:57 UTC (rev 998)
@@ -205,7 +205,7 @@
String assignment(String & test)
{
// 21.3.1
- const typename String::size_type size = random(0, 1000);
+ const typename String::size_type size = random(0, MaxString<String>::value);
String s(size, '\0');
typename String::size_type i = 0;
for (; i != s.size(); ++i)
@@ -220,7 +220,7 @@
String assignment_with_cstr(String & test)
{
// 21.3.1
- const typename String::size_type size = random(0, 1000);
+ const typename String::size_type size = random(0, MaxString<String>::value);
String s(size, '\0');
typename String::size_type i = 0;
for (; i != s.size(); ++i)
@@ -331,7 +331,7 @@
template<class String>
String reserve(String & test)
{
- const typename String::size_type reserveSize = random(0, 1000);
+ const typename String::size_type reserveSize = random(0, MaxString<String>::value);
test.reserve(reserveSize);
return test;
}
@@ -1718,7 +1718,7 @@
int main()
{
- const time_t initialSeed(1236182091 /*time(0)*/);
+ const time_t initialSeed(time(0));
srand(unsigned(initialSeed));
std::cout << "initial seed = " << initialSeed << "\n\n";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|