diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:47:58 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:47:58 +0000 |
commit | b76161e41bc2c07cd47f9c61f875d1be95e26d10 (patch) | |
tree | d03c19ce10dec6419f97df1d4dac9d47eb88982f /unittests/Utility/StatusTest.cpp | |
parent | 8b4000f13b303cc154136abc74c55670673e2a96 (diff) |
Notes
Diffstat (limited to 'unittests/Utility/StatusTest.cpp')
-rw-r--r-- | unittests/Utility/StatusTest.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/unittests/Utility/StatusTest.cpp b/unittests/Utility/StatusTest.cpp new file mode 100644 index 000000000000..9655610e4aa3 --- /dev/null +++ b/unittests/Utility/StatusTest.cpp @@ -0,0 +1,19 @@ +//===-- StatusTest.cpp ------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "lldb/Utility/Status.h" +#include "gtest/gtest.h" + +using namespace lldb_private; + +TEST(StatusTest, Formatv) { + EXPECT_EQ("", llvm::formatv("{0}", Status()).str()); + EXPECT_EQ("Hello Status", llvm::formatv("{0}", Status("Hello Status")).str()); + EXPECT_EQ("Hello", llvm::formatv("{0:5}", Status("Hello Error")).str()); +} |