| //===- llvm/unittest/ADT/SmallStringTest.cpp ------------------------------===// |
| // The LLVM Compiler Infrastructure |
| // This file is distributed under the University of Illinois Open Source |
| // License. See LICENSE.TXT for details. |
| //===----------------------------------------------------------------------===// |
| // SmallString unit tests. |
| //===----------------------------------------------------------------------===// |
| #include "llvm/ADT/SmallString.h" |
| class SmallStringTest : public testing::Test { |
| typedef SmallString<40> StringType; |
| void assertEmpty(StringType & v) { |
| EXPECT_TRUE(v.begin() == v.end()); |
| TEST_F(SmallStringTest, EmptyStringTest) { |
| SCOPED_TRACE("EmptyStringTest"); |
| EXPECT_TRUE(theString.rbegin() == theString.rend()); |