Skip to content

Commit

Permalink
fix test header file name
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Aug 29, 2024
1 parent 7a6464b commit 36f3e24
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/f/faker-cxx/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ package("faker-cxx")
end)

on_test(function (package)
local includes = "faker-cxx/string.h"
local version = package:version()
if version and version:lt("3.0.0") then
includes = "faker-cxx/String.h"
end

assert(package:check_cxxsnippets({test = [[
void test() {
const auto id = faker::string::uuid();
}
]]}, {configs = {languages = "c++20"}, includes = "faker-cxx/String.h"}))
]]}, {configs = {languages = "c++20"}, includes = includes}))
end)

0 comments on commit 36f3e24

Please sign in to comment.