aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-02-06 09:13:04 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-02-06 09:13:04 +0000
commit4dc4ab3abb0a9ccbbde6ee25c4858d946336bb38 (patch)
tree542d39d1367f454f33d659f1fbf52a3a34f3fa42 /test
parent6fbca948031ff48ac8bba35afcabad967965befa (diff)
Reverse::coeff*(int) functions are for vector only
Diffstat (limited to 'test')
-rw-r--r--test/reverse.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/reverse.cpp b/test/reverse.cpp
index 03584b812..40868abbc 100644
--- a/test/reverse.cpp
+++ b/test/reverse.cpp
@@ -185,4 +185,9 @@ void test_reverse()
CALL_SUBTEST( reverse(Matrix<float, 100, 100>()) );
CALL_SUBTEST( reverse(Matrix<long double,Dynamic,Dynamic>(10,10)) );
}
+ Vector4f x; x << 1, 2, 3, 4;
+ Vector4f y; y << 4, 3, 2, 1;
+ VERIFY(x.reverse()[1] == 3);
+ VERIFY(x.reverse() == y);
+
}