TEST_F(EvalContextTest, stringComplex) {
EvalContext eval(Option::V4);
- char data[] = "'12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f' == 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'";
+ char data[] = "'12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f' == "
+ "'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'";
EXPECT_NO_THROW(parsed_ = eval.parseString(string(data, sizeof(data) - 1)));
EXPECT_TRUE(parsed_);
EvalContext eval(Option::V4);
char data[] = "lcase('12345~!@#$%^&*()_+LoWeR{}[];:<>/?\\67890\t \0\b\r\f') == "
- "'12345~!@#$%^&*()_+lower{}[];:<>/?\\67890\t \0\b\r\f'";
+ "'12345~!@#$%^&*()_+lower{}[];:<>/?\\67890\t \0\b\r\f'";
EXPECT_NO_THROW(parsed_ = eval.parseString(string(data, sizeof(data) - 1)));
EXPECT_TRUE(parsed_);
EvalContext eval(Option::V4);
char data[] = "ucase('12345~!@#$%^&*()_+uPpEr{}[];:<>/?\\67890\t \0\b\r\f') == "
- "'12345~!@#$%^&*()_+UPPER{}[];:<>/?\\67890\t \0\b\r\f'";
+ "'12345~!@#$%^&*()_+UPPER{}[];:<>/?\\67890\t \0\b\r\f'";
EXPECT_NO_THROW(parsed_ = eval.parseString(string(data, sizeof(data) - 1)));
EXPECT_TRUE(parsed_);
// This simple test checks that a TokenString, representing a constant string,
// can be used in Pkt4 evaluation. (The actual packet is not used)
TEST_F(TokenTest, string4Complex) {
- char data[] = "12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f'\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+ char data[] = "12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f'\""
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
string data_str(data, sizeof(data) - 1);
// Store constant string in the TokenString object.
ASSERT_NO_THROW(t_.reset(new TokenString(data_str)));
// Check that the debug output was correct. Add the strings
// to the test vector in the class and then call checkFile
// for comparison
- char expected[] = "EVAL_DEBUG_STRING Pushing text string '12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f'\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'";
+ char expected[] = "EVAL_DEBUG_STRING Pushing text string '"
+ "12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f'\""
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'";
string expected_str(expected, sizeof(expected) - 1);
addString(expected_str);
EXPECT_TRUE(checkFile());
// This simple test checks that a TokenString, representing a constant string,
// can be used in Pkt6 evaluation. (The actual packet is not used)
TEST_F(TokenTest, string6Complex) {
- char data[] = "12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f'\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+ char data[] = "12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f'\""
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
string data_str(data, sizeof(data) - 1);
// Store constant string in the TokenString object.
ASSERT_NO_THROW(t_.reset(new TokenString(data_str)));
// Check that the debug output was correct. Add the strings
// to the test vector in the class and then call checkFile
// for comparison
- char expected[] = "EVAL_DEBUG_STRING Pushing text string '12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f'\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'";
+ char expected[] = "EVAL_DEBUG_STRING Pushing text string '"
+ "12345~!@#$%^&*()_+{}[];:<>/?\\67890\t \0\b\r\f'\""
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'";
string expected_str(expected, sizeof(expected) - 1);
addString(expected_str);
EXPECT_TRUE(checkFile());
// Check that the debug output was correct. Add the strings
// to the test vector in the class and then call checkFile
// for comparison
- char expected[] = "EVAL_DEBUG_LCASE Poping string '12345~!@#$%^&*()_+LoWeR{}[];:<>/?\\67890\t \0\b\r\f' "
- "and pushing converted value to lower case '12345~!@#$%^&*()_+lower{}[];:<>/?\\67890\t \0\b\r\f'";
+ char expected[] = "EVAL_DEBUG_LCASE Poping string '"
+ "12345~!@#$%^&*()_+LoWeR{}[];:<>/?\\67890\t \0\b\r\f' "
+ "and pushing converted value to lower case '"
+ "12345~!@#$%^&*()_+lower{}[];:<>/?\\67890\t \0\b\r\f'";
string expected_str(expected, sizeof(expected) - 1);
addString(expected_str);
EXPECT_TRUE(checkFile());
// Check that the debug output was correct. Add the strings
// to the test vector in the class and then call checkFile
// for comparison
- char expected[] = "EVAL_DEBUG_UCASE Poping string '12345~!@#$%^&*()_+uPpEr{}[];:<>/?\\67890\t \0\b\r\f' "
- "and pushing converted value to upper case '12345~!@#$%^&*()_+UPPER{}[];:<>/?\\67890\t \0\b\r\f'";
+ char expected[] = "EVAL_DEBUG_UCASE Poping string '"
+ "12345~!@#$%^&*()_+uPpEr{}[];:<>/?\\67890\t \0\b\r\f' "
+ "and pushing converted value to upper case '"
+ "12345~!@#$%^&*()_+UPPER{}[];:<>/?\\67890\t \0\b\r\f'";
string expected_str(expected, sizeof(expected) - 1);
addString(expected_str);
EXPECT_TRUE(checkFile());