root/trunk/Source/Base/Base/OSGVectorTest.cpp
| Revision 457, 3.9 kB (checked in by cneumann, 2 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | /*---------------------------------------------------------------------------*\ |
| 2 | * OpenSG * |
| 3 | * * |
| 4 | * * |
| 5 | * Copyright (C) 2000-2006 by the OpenSG Forum * |
| 6 | * * |
| 7 | * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * |
| 8 | * * |
| 9 | \*---------------------------------------------------------------------------*/ |
| 10 | /*---------------------------------------------------------------------------*\ |
| 11 | * License * |
| 12 | * * |
| 13 | * This library is free software; you can redistribute it and/or modify it * |
| 14 | * under the terms of the GNU Library General Public License as published * |
| 15 | * by the Free Software Foundation, version 2. * |
| 16 | * * |
| 17 | * This library is distributed in the hope that it will be useful, but * |
| 18 | * WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * |
| 20 | * Library General Public License for more details. * |
| 21 | * * |
| 22 | * You should have received a copy of the GNU Library General Public * |
| 23 | * License along with this library; if not, write to the Free Software * |
| 24 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * |
| 25 | * * |
| 26 | \*---------------------------------------------------------------------------*/ |
| 27 | /*---------------------------------------------------------------------------*\ |
| 28 | * Changes * |
| 29 | * * |
| 30 | * * |
| 31 | * * |
| 32 | * * |
| 33 | * * |
| 34 | * * |
| 35 | \*---------------------------------------------------------------------------*/ |
| 36 | |
| 37 | #include <UnitTest++.h> |
| 38 | |
| 39 | // Unit tests for vec classes |
| 40 | |
| 41 | #include <OpenSG/OSGVector.h> |
| 42 | |
| 43 | OSG_USING_NAMESPACE |
| 44 | |
| 45 | SUITE(VectorTests) |
| 46 | { |
| 47 | |
| 48 | TEST(InstantiateAllVectorTypes) |
| 49 | { |
| 50 | Vec1f v1f; |
| 51 | Vec2f v2f; |
| 52 | Vec3f v3f; |
| 53 | Vec4f v4f; |
| 54 | |
| 55 | Vec1d v1d; |
| 56 | Vec2d v2d; |
| 57 | Vec3d v3d; |
| 58 | Vec4d v4d; |
| 59 | |
| 60 | Vec1ub v1ub; |
| 61 | Vec2ub v2ub; |
| 62 | Vec3ub v3ub; |
| 63 | Vec4ub v4ub; |
| 64 | |
| 65 | Vec1b v1b; |
| 66 | Vec2b v2b; |
| 67 | Vec3b v3b; |
| 68 | Vec4b v4b; |
| 69 | |
| 70 | Vec1us v1us; |
| 71 | Vec2us v2us; |
| 72 | Vec3us v3us; |
| 73 | Vec4us v4us; |
| 74 | |
| 75 | Vec1s v1s; |
| 76 | Vec2s v2s; |
| 77 | Vec3s v3s; |
| 78 | Vec4s v4s; |
| 79 | |
| 80 | Vec1fx v1fx; |
| 81 | Vec2fx v2fx; |
| 82 | Vec3fx v3fx; |
| 83 | Vec4fx v4fx; |
| 84 | |
| 85 | CHECK(true); |
| 86 | } |
| 87 | |
| 88 | |
| 89 | TEST(InstantiateAllPointTypes) |
| 90 | { |
| 91 | Pnt1f p1f; |
| 92 | Pnt2f p2f; |
| 93 | Pnt3f p3f; |
| 94 | Pnt4f p4f; |
| 95 | |
| 96 | Pnt1d p1d; |
| 97 | Pnt2d p2d; |
| 98 | Pnt3d p3d; |
| 99 | Pnt4d p4d; |
| 100 | |
| 101 | Pnt1ub p1ub; |
| 102 | Pnt2ub p2ub; |
| 103 | Pnt3ub p3ub; |
| 104 | Pnt4ub p4ub; |
| 105 | |
| 106 | Pnt1b p1b; |
| 107 | Pnt2b p2b; |
| 108 | Pnt3b p3b; |
| 109 | Pnt4b p4b; |
| 110 | |
| 111 | Pnt1us p1us; |
| 112 | Pnt2us p2us; |
| 113 | Pnt3us p3us; |
| 114 | Pnt4us p4us; |
| 115 | |
| 116 | Pnt1s p1s; |
| 117 | Pnt2s p2s; |
| 118 | Pnt3s p3s; |
| 119 | Pnt4s p4s; |
| 120 | |
| 121 | Pnt1fx p1fx; |
| 122 | Pnt2fx p2fx; |
| 123 | Pnt3fx p3fx; |
| 124 | Pnt4fx p4fx; |
| 125 | |
| 126 | CHECK(true); |
| 127 | } |
| 128 | |
| 129 | } // SUITE |
| 130 |
Note: See TracBrowser for help on using the browser.
