test: add windows.h test

This commit is contained in:
ToruNiina
2020-07-10 15:11:14 +09:00
parent 761e576991
commit 93a9f2711c
2 changed files with 18 additions and 0 deletions

12
tests/test_windows.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include <windows.h>
#include <toml.hpp>
#include <iostream>
int main()
{
using namespace toml::literals::toml_literals;
const auto data = u8R"(windows = "defines min and max as a macro")"_toml;
std::cout << toml::find<std::string>(data, "windows") << std::endl;
return 0;
}