aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--test/ref.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ref.cpp b/test/ref.cpp
index a94ea9677..250135bdb 100644
--- a/test/ref.cpp
+++ b/test/ref.cpp
@@ -255,8 +255,8 @@ void test_ref_overloads()
void test_ref_fixed_size_assert()
{
- Vector4f v4;
- VectorXf vx(10);
+ Vector4f v4 = Vector4f::Random();
+ VectorXf vx = VectorXf::Random(10);
VERIFY_RAISES_STATIC_ASSERT( Ref<Vector3f> y = v4; (void)y; );
VERIFY_RAISES_STATIC_ASSERT( Ref<Vector3f> y = vx.head<4>(); (void)y; );
VERIFY_RAISES_STATIC_ASSERT( Ref<const Vector3f> y = v4; (void)y; );