File: WindowBase.test.cpp

package info (click to toggle)
libcsfml 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,240 kB
  • sloc: cpp: 7,741; ansic: 2,616; sh: 805; makefile: 16
file content (23 lines) | stat: -rw-r--r-- 754 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <CSFML/Window/WindowBase.h>

#include <SFML/Window/WindowBase.hpp>

#include <catch2/catch_test_macros.hpp>

TEST_CASE("[Window] sfWindowBase")
{
    SECTION("sfWindowStyle")
    {
        STATIC_CHECK(sfNone == static_cast<int>(sf::Style::None));
        STATIC_CHECK(sfTitlebar == static_cast<int>(sf::Style::Titlebar));
        STATIC_CHECK(sfResize == static_cast<int>(sf::Style::Resize));
        STATIC_CHECK(sfClose == static_cast<int>(sf::Style::Close));
        STATIC_CHECK(sfDefaultStyle == static_cast<int>(sf::Style::Default));
    }

    SECTION("sfWindowState")
    {
        STATIC_CHECK(sfWindowed == static_cast<int>(sf::State::Windowed));
        STATIC_CHECK(sfFullscreen == static_cast<int>(sf::State::Fullscreen));
    }
}