Commit 026ec6b1 authored by Hans Fugal's avatar Hans Fugal Committed by Praveen Kumar Ramakrishnan

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
parent db2eae0e
...@@ -1779,8 +1779,3 @@ TEST(Map, Basic) { ...@@ -1779,8 +1779,3 @@ TEST(Map, Basic) {
EXPECT_TRUE(collect(fs2).isReady()); EXPECT_TRUE(collect(fs2).isReady());
} }
TEST(Promise, defaultConstructedUnit) {
Promise<Unit> p;
p.setValue();
}
...@@ -28,3 +28,8 @@ TEST(Unit, voidOrUnit) { ...@@ -28,3 +28,8 @@ TEST(Unit, voidOrUnit) {
EXPECT_TRUE(is_void_or_unit<Unit>::value); EXPECT_TRUE(is_void_or_unit<Unit>::value);
EXPECT_FALSE(is_void_or_unit<int>::value); EXPECT_FALSE(is_void_or_unit<int>::value);
} }
TEST(Unit, PromiseSetValue) {
Promise<Unit> p;
p.setValue();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment