Skip to content

Commit 8081829

Browse files
committed
update tests
1 parent 1610b69 commit 8081829

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

google/cloud/bigtable/bytes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Bytes {
4444
/// An empty sequence.
4545
Bytes() = default;
4646

47-
/// Strips the null-terminator character from input bytes.
47+
/// Stops copying at the null-terminator character from input bytes.
4848
explicit Bytes(char const* bytes) : bytes_(bytes) {}
4949

5050
/// @name Construction from a sequence of octets.

google/cloud/bigtable/bytes_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ TEST(Bytes, OutputStream) {
105105
{Bytes(std::string("a\377B")), R"(B"a\377B")"},
106106
{Bytes(std::string("!@#$%^&*()-.")), R"(B"!@#$%^&*()-.")"},
107107
{Bytes(std::string(3, '\0')), R"(B"\000\000\000")"},
108-
{Bytes(""), R"(B"\000")"},
109-
{Bytes("foo"), R"(B"foo\000")"},
108+
{Bytes(""), R"(B"")"},
109+
{Bytes("foo"), R"(B"foo")"},
110110
};
111111

112112
for (auto const& tc : test_cases) {

0 commit comments

Comments
 (0)