We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8290440 commit fff3a84Copy full SHA for fff3a84
lldb/unittests/DataFormatter/MockTests.cpp
@@ -9,6 +9,7 @@
9
#include "lldb/DataFormatters/Mock.h"
10
#include "lldb/Utility/StreamString.h"
11
#include "llvm/ADT/Optional.h"
12
+#include "llvm/ADT/StringRef.h"
13
#include "gtest/gtest.h"
14
#include <string>
15
@@ -36,5 +37,6 @@ TEST(DataFormatterMockTest, NSDate) {
36
37
EXPECT_EQ(formatDateValue(std::numeric_limits<time_t>::max()), llvm::None);
38
EXPECT_EQ(formatDateValue(std::numeric_limits<time_t>::min()), llvm::None);
39
- EXPECT_EQ(*formatDateValue(0), "2001-01-01 00:00:00 UTC");
40
+ EXPECT_TRUE(
41
+ llvm::StringRef(*formatDateValue(0)).startswith("2001-01-01 00:00:00"));
42
}
0 commit comments