add test for #4440

This commit is contained in:
Niels Lohmann 2024-11-17 11:37:27 +01:00
parent b456b88dde
commit a833cfde21
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69

View File

@ -953,7 +953,7 @@ TEST_CASE("regression tests 2")
});
json j = {1, 2, 3};
auto filtered = j | noOpFilter;
CHECK(j == *filtered.begin());
CHECK(*filtered.begin() == 1);
}
#endif
}