File: geometry_test.cpp

package info (click to toggle)
wayfire 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,764 kB
  • sloc: cpp: 52,464; xml: 2,987; ansic: 699; makefile: 161
file content (13 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>

#include <wayfire/geometry.hpp>

TEST_CASE("Point addition")
{
    wf::point_t a = {1, 2};
    wf::point_t b = {3, 4};

    using namespace wf;
    REQUIRE_EQ(a + b, wf::point_t{4, 6});
}