diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-20 14:38:14 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-20 14:38:14 +0000 |
commit | c60164953dd6a4ee485c42211a3bcf8ee9eba06f (patch) | |
tree | a66408a1ad9423512c4fe53cf89dbacf502592dd /tests/structtest.cpp | |
parent | 16905976c82c57fdc98a8988392354597f166a12 (diff) | |
download | YAGE-c60164953dd6a4ee485c42211a3bcf8ee9eba06f.tar.gz YAGE-c60164953dd6a4ee485c42211a3bcf8ee9eba06f.zip |
Fixed license headers
Diffstat (limited to 'tests/structtest.cpp')
-rw-r--r-- | tests/structtest.cpp | 14 |
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); |