test: add test cases for unintended categoryKeyword config options

This commit is contained in:
Aurelien Brabant 2024-07-06 00:31:47 +02:00
parent cee1eebc2d
commit c08bd86141
No known key found for this signature in database
GPG key ID: 5F90C2579402FCFA

View file

@ -159,6 +159,8 @@ int main(int argc, char** argv, char** envp) {
EXPECT(std::any_cast<int64_t>(config.getConfigValue("testCategory:testColor2")), (Hyprlang::INT)0xFF000000);
EXPECT(std::any_cast<int64_t>(config.getConfigValue("testCategory:testColor3")), (Hyprlang::INT)0x22ffeeff);
EXPECT(std::any_cast<const char*>(config.getConfigValue("testStringColon")), std::string{"ee:ee:ee"});
EXPECT(std::any_cast<const char*>(config.getConfigValue("categoryKeyword")), std::string{"oops, this one shouldn't call the handler, not fun"});
EXPECT(std::any_cast<const char*>(config.getConfigValue("testCategory:nested1:categoryKeyword")), std::string{"this one should not either"});
// test static values
std::cout << " → Testing static values\n";