aboutsummaryrefslogtreecommitdiff
path: root/tests/testDimension2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testDimension2d.cpp')
-rw-r--r--tests/testDimension2d.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/testDimension2d.cpp b/tests/testDimension2d.cpp
deleted file mode 100644
index 801c2cf..0000000
--- a/tests/testDimension2d.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (C) 2008-2012 Colin MacDonald
-// No rights reserved: this software is in the public domain.
-
-#include "testUtils.h"
-
-using namespace irr;
-using namespace core;
-
-/** Some very basic testing of dimension2df:
- operator+=
- operator!= (and thus implicitly operator==) */
-bool testDimension2d(void)
-{
- dimension2df dimension(100.f, 100.f);
- const dimension2df addDimension(200.f, -200.f);
-
- (void)(dimension += addDimension);
-
- if(dimension != dimension2df(300.f, -100.f))
- {
- logTestString("dimension2df != produced unexpected result.\n");
- assert_log(false);
- return false;
- }
-
- (void)(dimension -= addDimension);
- if(dimension != dimension2df(100.f, 100.f))
- {
- logTestString("dimension2df -= produced unexpected result.\n");
- assert_log(false);
- return false;
- }
-
- return true;
-}
-