mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
synced with main repository
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// HTMLFormTest.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Net/testsuite/src/HTMLFormTest.cpp#10 $
|
||||
// $Id: //poco/svn/Net/testsuite/src/HTMLFormTest.cpp#3 $
|
||||
//
|
||||
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
@@ -111,11 +111,12 @@ void HTMLFormTest::testWriteUrl()
|
||||
form.set("field2", "value 2");
|
||||
form.set("field3", "value=3");
|
||||
form.set("field4", "value&4");
|
||||
form.set("field5", "value+5");
|
||||
|
||||
std::ostringstream ostr;
|
||||
form.write(ostr);
|
||||
std::string s = ostr.str();
|
||||
assert (s == "field1=value1&field2=value%202&field3=value%3D3&field4=value%264");
|
||||
assert (s == "field1=value1&field2=value%202&field3=value%3D3&field4=value%264&field5=value%2B5");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user