usata-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Usata-commits] Changes to usata2/src/test/vector.cpp


From: Chong Kai Xiong
Subject: [Usata-commits] Changes to usata2/src/test/vector.cpp
Date: Tue, 04 Jan 2005 20:52:38 -0500

Index: usata2/src/test/vector.cpp
diff -u usata2/src/test/vector.cpp:1.2 usata2/src/test/vector.cpp:1.3
--- usata2/src/test/vector.cpp:1.2      Tue Jan  4 15:04:37 2005
+++ usata2/src/test/vector.cpp  Wed Jan  5 01:26:11 2005
@@ -9,7 +9,7 @@
 // included in the software distribution, or visit
 // http://www.fsf.org/licenses/gpl.html.
 //
-// $Id: vector.cpp,v 1.2 2005/01/04 15:04:37 Descender Exp $
+// $Id: vector.cpp,v 1.3 2005/01/05 01:26:11 Descender Exp $
 
 #include <iostream>
 #include "test.hpp"
@@ -61,6 +61,11 @@
                x[3] = 7;
                USATA_TEST_ASSERT(x[0] == 4 && x[1] == 5 &&
                                                  x[2] == 6 && x[3] == 7);
+
+               // const
+               const Vector4i y(0, 1, 2, 3);
+               USATA_TEST_ASSERT(y[0] == 0 && y[1] == 1 &&
+                                                 y[2] == 2 && y[3] == 3);
        }
 
        // equality operators




reply via email to

[Prev in Thread] Current Thread [Next in Thread]