polybar-dwm/tests/unit_tests/x11/connection.cpp

15 lines
345 B
C++
Raw Normal View History

2016-11-20 22:04:31 +00:00
#include "utils/string.cpp"
#include "x11/atoms.cpp"
#include "x11/connection.cpp"
#include "x11/xutils.cpp"
#include "x11/xlib.cpp"
2016-10-24 23:47:00 +00:00
int main() {
2016-11-19 05:22:44 +00:00
using namespace polybar;
2016-10-24 23:47:00 +00:00
"id"_test = [] {
2016-11-20 22:04:31 +00:00
connection& conn{configure_connection().create<connection&>()};
2016-10-24 23:47:00 +00:00
expect(conn.id(static_cast<xcb_window_t>(0x12345678)) == "0x12345678");
};
}