From 026ec6b1f4ee78d573704c6b83d198833e5b5736 Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Thu, 30 Apr 2015 12:36:26 -0700 Subject: [PATCH] Move a little test Summary: truffleshuffle Test Plan: runtests Reviewed By: yfeldblum@fb.com Subscribers: exa, folly-diffs@, jsedgwick, yfeldblum, chalfant FB internal diff: D2029715 Signature: t1:2029715:1430285509:165edabb1bdbb2a4766e7619c67e7e568626b903 --- folly/futures/test/FutureTest.cpp | 5 ----- folly/futures/test/UnitTest.cpp | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/folly/futures/test/FutureTest.cpp b/folly/futures/test/FutureTest.cpp index 3ae0703d..da3e1c5c 100644 --- a/folly/futures/test/FutureTest.cpp +++ b/folly/futures/test/FutureTest.cpp @@ -1779,8 +1779,3 @@ TEST(Map, Basic) { EXPECT_TRUE(collect(fs2).isReady()); } - -TEST(Promise, defaultConstructedUnit) { - Promise p; - p.setValue(); -} diff --git a/folly/futures/test/UnitTest.cpp b/folly/futures/test/UnitTest.cpp index ea7cda7c..03057393 100644 --- a/folly/futures/test/UnitTest.cpp +++ b/folly/futures/test/UnitTest.cpp @@ -28,3 +28,8 @@ TEST(Unit, voidOrUnit) { EXPECT_TRUE(is_void_or_unit::value); EXPECT_FALSE(is_void_or_unit::value); } + +TEST(Unit, PromiseSetValue) { + Promise p; + p.setValue(); +} -- 2.34.1