Pavel Labath | 8198db3 | 2017-01-24 11:48:25 +0000 | [diff] [blame] | 1 | //===-- StateTest.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 | |
Pavel Labath | d821c99 | 2018-08-07 11:07:21 +0000 | [diff] [blame^] | 10 | #include "lldb/Utility/State.h" |
Pavel Labath | 8198db3 | 2017-01-24 11:48:25 +0000 | [diff] [blame] | 11 | #include "llvm/Support/FormatVariadic.h" |
| 12 | #include "gtest/gtest.h" |
| 13 | |
| 14 | using namespace lldb; |
| 15 | using namespace lldb_private; |
| 16 | |
| 17 | TEST(StateTest, Formatv) { |
| 18 | EXPECT_EQ("exited", llvm::formatv("{0}", eStateExited).str()); |
| 19 | EXPECT_EQ("stopped", llvm::formatv("{0}", eStateStopped).str()); |
| 20 | EXPECT_EQ("unknown", llvm::formatv("{0}", StateType(-1)).str()); |
| 21 | } |