1 //===-- MemoryRegionInfoTest.cpp --------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #include "lldb/Target/MemoryRegionInfo.h" 11 #include "llvm/Support/FormatVariadic.h" 12 #include "gtest/gtest.h" 13 14 using namespace lldb_private; 15 16 TEST(MemoryRegionInfoTest, Formatv) { 17 EXPECT_EQ("yes", llvm::formatv("{0}", MemoryRegionInfo::eYes).str()); 18 EXPECT_EQ("no", llvm::formatv("{0}", MemoryRegionInfo::eNo).str()); 19 EXPECT_EQ("don't know", llvm::formatv("{0}", MemoryRegionInfo::eDontKnow).str()); 20 } 21