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