Skip to content

Commit

Permalink
yaml-cpp: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Aug 14, 2024
1 parent 699719e commit 5b7f9b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/y/yaml-cpp/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@ package("yaml-cpp")
end)

on_test(function (package)
assert(package:has_cxxtypes("YAML::Parser", {configs = {languages = "c++11"}, includes = "yaml-cpp/yaml.h"}))
assert(package:check_cxxsnippets({test = [[
void test() {
YAML::Load("");
}
]]}, {configs = {languages = "c++11"}, includes = "yaml-cpp/yaml.h"}))
end)

0 comments on commit 5b7f9b6

Please sign in to comment.