From: Chandler Carruth Date: Mon, 28 Apr 2014 23:37:53 +0000 (+0000) Subject: [cleanup] Fix the whitespace in this test. Notably, correct spacing X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e753df356653f746d11d05754f2481b7dcb8814a;p=oota-llvm.git [cleanup] Fix the whitespace in this test. Notably, correct spacing around pointer types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207465 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ADT/PointerUnionTest.cpp b/unittests/ADT/PointerUnionTest.cpp index 7eb718112d6..4dfcb7ea75d 100644 --- a/unittests/ADT/PointerUnionTest.cpp +++ b/unittests/ADT/PointerUnionTest.cpp @@ -13,11 +13,10 @@ using namespace llvm; namespace { -typedef PointerUnion PU; +typedef PointerUnion PU; // Test fixture -class PointerUnionTest : public testing::Test { -}; +class PointerUnionTest : public testing::Test {}; float f = 3.14f; int i = 42; @@ -47,18 +46,18 @@ TEST_F(PointerUnionTest, Null) { } TEST_F(PointerUnionTest, Is) { - EXPECT_FALSE(a.is()); - EXPECT_TRUE(a.is()); - EXPECT_TRUE(b.is()); - EXPECT_FALSE(b.is()); - EXPECT_TRUE(n.is()); - EXPECT_FALSE(n.is()); + EXPECT_FALSE(a.is()); + EXPECT_TRUE(a.is()); + EXPECT_TRUE(b.is()); + EXPECT_FALSE(b.is()); + EXPECT_TRUE(n.is()); + EXPECT_FALSE(n.is()); } TEST_F(PointerUnionTest, Get) { - EXPECT_EQ(a.get(), &f); - EXPECT_EQ(b.get(), &i); - EXPECT_EQ(n.get(), (int*)0); + EXPECT_EQ(a.get(), &f); + EXPECT_EQ(b.get(), &i); + EXPECT_EQ(n.get(), (int *)0); } } // end anonymous namespace