1*80814287SRaphael Isemann //===-- MemoryRegionInfoTest.cpp ------------------------------------------===// 2048b3eceSPavel Labath // 32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6048b3eceSPavel Labath // 7048b3eceSPavel Labath //===----------------------------------------------------------------------===// 8048b3eceSPavel Labath 9048b3eceSPavel Labath #include "lldb/Target/MemoryRegionInfo.h" 10048b3eceSPavel Labath #include "llvm/Support/FormatVariadic.h" 11048b3eceSPavel Labath #include "gtest/gtest.h" 12048b3eceSPavel Labath 13048b3eceSPavel Labath using namespace lldb_private; 14048b3eceSPavel Labath TEST(MemoryRegionInfoTest,Formatv)15048b3eceSPavel LabathTEST(MemoryRegionInfoTest, Formatv) { 16048b3eceSPavel Labath EXPECT_EQ("yes", llvm::formatv("{0}", MemoryRegionInfo::eYes).str()); 17048b3eceSPavel Labath EXPECT_EQ("no", llvm::formatv("{0}", MemoryRegionInfo::eNo).str()); 18048b3eceSPavel Labath EXPECT_EQ("don't know", llvm::formatv("{0}", MemoryRegionInfo::eDontKnow).str()); 19048b3eceSPavel Labath } 20