From: Hans Fugal Date: Thu, 30 Apr 2015 19:36:26 +0000 (-0700) Subject: Move a little test X-Git-Tag: v0.38.0~29 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=026ec6b1f4ee78d573704c6b83d198833e5b5736;p=folly.git 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 --- 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(); +}