Last change
on this file since 10256 was
9545,
checked in by landauf, 12 years ago
|
eol-style native
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | #include <gtest/gtest.h> |
---|
2 | #include "util/Output.h" |
---|
3 | |
---|
4 | namespace orxonox |
---|
5 | { |
---|
6 | TEST(OutputDefinitionsTest, Levels) |
---|
7 | { |
---|
8 | EXPECT_EQ(0x0000, level::none); |
---|
9 | } |
---|
10 | |
---|
11 | TEST(OutputDefinitionsTest, OutputContextContainer) |
---|
12 | { |
---|
13 | OutputContextContainer container1; |
---|
14 | container1.mask = 1; |
---|
15 | container1.sub_id = 1; |
---|
16 | container1.name = "1"; |
---|
17 | |
---|
18 | OutputContextContainer container2; |
---|
19 | container2.mask = 1; |
---|
20 | container2.sub_id = 1; |
---|
21 | container2.name = "1"; |
---|
22 | |
---|
23 | EXPECT_TRUE(container1 == container2); |
---|
24 | |
---|
25 | { |
---|
26 | OutputContextContainer container3(container2); |
---|
27 | EXPECT_TRUE(container1 == container3); |
---|
28 | container3.mask = 2; |
---|
29 | EXPECT_FALSE(container1 == container3); |
---|
30 | } |
---|
31 | |
---|
32 | { |
---|
33 | OutputContextContainer container3(container2); |
---|
34 | EXPECT_TRUE(container1 == container3); |
---|
35 | container3.sub_id = 2; |
---|
36 | EXPECT_FALSE(container1 == container3); |
---|
37 | } |
---|
38 | |
---|
39 | { |
---|
40 | OutputContextContainer container3(container2); |
---|
41 | EXPECT_TRUE(container1 == container3); |
---|
42 | container3.name = "2"; |
---|
43 | EXPECT_FALSE(container1 == container3); |
---|
44 | } |
---|
45 | } |
---|
46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.