From 730e5dde39333cb2f63c72a7d7152bee5c4dbb05 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 8 Feb 2014 15:09:25 -0800 Subject: Implement AString --- src/io/read_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/io/read_test.cpp') diff --git a/src/io/read_test.cpp b/src/io/read_test.cpp index ebb20ca..5d287dd 100644 --- a/src/io/read_test.cpp +++ b/src/io/read_test.cpp @@ -23,7 +23,7 @@ io::FD string_pipe(ZString sz) TEST(io, read1) { io::ReadFile rf(string_pipe("Hello")); - FString hi; + AString hi; EXPECT_TRUE(rf.getline(hi)); EXPECT_EQ(hi, "Hello"); EXPECT_FALSE(rf.getline(hi)); @@ -31,7 +31,7 @@ TEST(io, read1) TEST(io, read2) { io::ReadFile rf(string_pipe("Hello\n")); - FString hi; + AString hi; EXPECT_TRUE(rf.getline(hi)); EXPECT_EQ(hi, "Hello"); EXPECT_FALSE(rf.getline(hi)); @@ -39,7 +39,7 @@ TEST(io, read2) TEST(io, read3) { io::ReadFile rf(string_pipe("Hello\r")); - FString hi; + AString hi; EXPECT_TRUE(rf.getline(hi)); EXPECT_EQ(hi, "Hello"); EXPECT_FALSE(rf.getline(hi)); @@ -47,7 +47,7 @@ TEST(io, read3) TEST(io, read4) { io::ReadFile rf(string_pipe("Hello\r\n")); - FString hi; + AString hi; EXPECT_TRUE(rf.getline(hi)); EXPECT_EQ(hi, "Hello"); EXPECT_FALSE(rf.getline(hi)); @@ -55,7 +55,7 @@ TEST(io, read4) TEST(io, read5) { io::ReadFile rf(string_pipe("Hello\n\r")); - FString hi; + AString hi; EXPECT_TRUE(rf.getline(hi)); EXPECT_EQ(hi, "Hello"); EXPECT_TRUE(rf.getline(hi)); -- cgit v1.2.3-60-g2f50