test/unittests/httpparsing.cpp
// Test a parameter that has no value.

Test a parameter that has no value.
Test a parameter that has no value .
TEST(HTTPParsing, getnovalue) {
	Parameters params;
	parseCGIEnvironment(params, "GET", "/cgi-bin/bla",
			"flag1&flag2&flag3=&value1=3&value2=4");
	EXPECT_EQ(params.get("flag1", "-"), "");
	EXPECT_EQ(params.get("flag2", "-"), "");
	EXPECT_EQ(params.get("flag3", "-"), "");
	EXPECT_EQ(params.get("value1", ""), "3");
	EXPECT_EQ(params.get("value2", ""), "4");
}
TEST ( HTTPParsing , getnovalue ) { Parameters params ; parseCGIEnvironment ( params , " " , " " , " " ) ; EXPECT_EQ ( params . get ( " " , " " ) , " " ) ; EXPECT_EQ ( params . get ( " " , " " ) , " " ) ; EXPECT_EQ ( params . get ( " " , " " ) , " " ) ; EXPECT_EQ ( params . get ( " " , " " ) , " " ) ; EXPECT_EQ ( params . get ( " " , " " ) , " " ) ; }
Test a parameter that has no value.
Test a parameter that has no value .