aboutsummaryrefslogtreecommitdiffstats
path: root/tests/structtest.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-12-20 17:59:48 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-12-20 17:59:48 +0000
commitcc35bb2471c6d3fd695e3f8985ef168cda3fb39c (patch)
tree2cf90c623fdb75086e486b368c5d65f35a839c10 /tests/structtest.cpp
parent1fcd6a0fe38a8db2c6d317c2735419aa04e9cd83 (diff)
parentb885965a6375f98d6bec63a43233461f9f42006d (diff)
downloadYAGE-cc35bb2471c6d3fd695e3f8985ef168cda3fb39c.tar.gz
YAGE-cc35bb2471c6d3fd695e3f8985ef168cda3fb39c.zip
Merge branch 'develop'
Diffstat (limited to 'tests/structtest.cpp')
-rw-r--r--tests/structtest.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/structtest.cpp b/tests/structtest.cpp
index 13a2c591..99752abb 100644
--- a/tests/structtest.cpp
+++ b/tests/structtest.cpp
@@ -1,8 +1,16 @@
-#include <yage/yage.h>
+/** ---------------------------------------------------------------------------
+ * @file: structtest.cpp
+ *
+ * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
+ * MIT License, see LICENSE file for more details.
+ * ----------------------------------------------------------------------------
+ */
+
#include <gtest/gtest.h>
+#include <yage/yage.h>
-#include <ctime>
#include <cstdlib>
+#include <ctime>
TEST(StructTest, ColourDefault)
{
@@ -15,7 +23,7 @@ TEST(StructTest, ColourDefault)
TEST(StructTest, ColourConstructor)
{
- int r = rand()%255, g = rand()%255, b = rand() % 255, a = rand() % 255;
+ int r = rand() % 255, g = rand() % 255, b = rand() % 255, a = rand() % 255;
yage::Colour c(r, g, b, a);
ASSERT_EQ(c.r, r);