mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Test writing strings.
This commit is contained in:
parent
a4fd71f4ba
commit
5978412d5c
@ -254,6 +254,10 @@ TEST(WriterTest, WriteDouble) {
|
|||||||
EXPECT_EQ("-4.2", str(Writer() << -4.2));
|
EXPECT_EQ("-4.2", str(Writer() << -4.2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(WriterTest, WriteString) {
|
||||||
|
EXPECT_EQ("abc", str(Writer() << "abc"));
|
||||||
|
}
|
||||||
|
|
||||||
class Date {
|
class Date {
|
||||||
int year_, month_, day_;
|
int year_, month_, day_;
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user