commit | 295f1f3e213456b15ade8af1573d5337adaa5fa5 | [log] [tgz] |
---|---|---|
author | brians <brians@f308d9b7-e957-4cde-b6ac-9a88185e7312> | Sun Mar 03 21:01:48 2013 +0000 |
committer | brians <brians@f308d9b7-e957-4cde-b6ac-9a88185e7312> | Sun Mar 03 21:01:48 2013 +0000 |
tree | 9e681279cbca368aac627ba9e417b1d74045673a | |
parent | b913fa7208eb421cd36a7d10f147f73299026dc8 [diff] [blame] |
fixed the test (it violated the docs...) git-svn-id: https://robotics.mvla.net/svn/frc971/2013/trunk/src@4186 f308d9b7-e957-4cde-b6ac-9a88185e7312
diff --git a/aos/common/once_test.cc b/aos/common/once_test.cc index ed21b37..7c6e5de 100644 --- a/aos/common/once_test.cc +++ b/aos/common/once_test.cc
@@ -114,6 +114,7 @@ // Tests calling Reset() to run the function a second time. TEST_F(OnceTest, Recalculate) { Once<int> once(Function); + once.Reset(); EXPECT_EQ(value_, *once.Get()); EXPECT_EQ(1, times_run_);