Remove use of ASSERT_THAT
This commit is contained in:
parent
4c658d7811
commit
78a4c6d730
5 changed files with 53 additions and 54 deletions
|
|
@ -19,7 +19,7 @@ TEST(CsvWriter, one_row_two_numbers)
|
|||
writer.nextRow();
|
||||
|
||||
QString expected = QString::fromUtf8("1,2\n");
|
||||
ASSERT_THAT(result, Eq(expected));
|
||||
ASSERT_EQ(result, expected);
|
||||
}
|
||||
|
||||
TEST(CsvWriter, one_row_one_number_one_unquoted_string)
|
||||
|
|
@ -34,7 +34,7 @@ TEST(CsvWriter, one_row_one_number_one_unquoted_string)
|
|||
writer.nextRow();
|
||||
|
||||
QString expected = QString::fromUtf8("1,hello\n");
|
||||
ASSERT_THAT(result, Eq(expected));
|
||||
ASSERT_EQ(result, expected);
|
||||
}
|
||||
|
||||
TEST(CsvWriter, one_row_one_number_one_quoted_string)
|
||||
|
|
@ -49,7 +49,7 @@ TEST(CsvWriter, one_row_one_number_one_quoted_string)
|
|||
writer.nextRow();
|
||||
|
||||
QString expected = QString::fromUtf8("1,\"hel,lo\"\n");
|
||||
ASSERT_THAT(result, Eq(expected));
|
||||
ASSERT_EQ(result, expected);
|
||||
}
|
||||
|
||||
TEST(CsvWriter, newline_in_field)
|
||||
|
|
@ -64,7 +64,7 @@ TEST(CsvWriter, newline_in_field)
|
|||
writer.nextRow();
|
||||
|
||||
QString expected = QString::fromUtf8("1,\"hel\nlo\"\n");
|
||||
ASSERT_THAT(result, Eq(expected));
|
||||
ASSERT_EQ(result, expected);
|
||||
}
|
||||
|
||||
TEST(CsvWriter, escape_quote)
|
||||
|
|
@ -79,7 +79,7 @@ TEST(CsvWriter, escape_quote)
|
|||
writer.nextRow();
|
||||
|
||||
QString expected = QString::fromUtf8("1,\"hel\"\"lo\"\n");
|
||||
ASSERT_THAT(result, Eq(expected));
|
||||
ASSERT_EQ(result, expected);
|
||||
}
|
||||
|
||||
TEST(CsvWriter, non_default_seperator)
|
||||
|
|
@ -94,7 +94,7 @@ TEST(CsvWriter, non_default_seperator)
|
|||
writer.nextRow();
|
||||
|
||||
QString expected = QString::fromUtf8("1\thel,lo\n");
|
||||
ASSERT_THAT(result, Eq(expected));
|
||||
ASSERT_EQ(result, expected);
|
||||
}
|
||||
|
||||
TEST(CsvWriter, non_default_quote)
|
||||
|
|
@ -109,5 +109,5 @@ TEST(CsvWriter, non_default_quote)
|
|||
writer.nextRow();
|
||||
|
||||
QString expected = QString::fromUtf8("1\t*hel\tlo*\n");
|
||||
ASSERT_THAT(result, Eq(expected));
|
||||
ASSERT_EQ(result, expected);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue