| 8 | using namespace Star; |
| 9 | |
| 10 | TEST(any, allTests) { |
| 11 | int a = 60; |
| 12 | int asdf[] = {1, 2, 3, 4, 5, 6}; |
| 13 | |
| 14 | EXPECT_TRUE(any(asdf, [&](int b) { return b < a; })); |
| 15 | EXPECT_FALSE(any(asdf, [&](int b) { return b > a; })); |
| 16 | EXPECT_TRUE(any(asdf, [&](int b) { return a % b == 0; })); |
| 17 | |
| 18 | bool b[] = {false, false, false, true}; |
| 19 | bool c[] = {false, false, false, false}; |
| 20 | bool d[] = {false, false, true, true}; |
| 21 | bool e[] = {true, true, true, true}; |
| 22 | int f[] = {0, 1, 0, 0, 0, 3}; |
| 23 | |
| 24 | EXPECT_TRUE(any(b)); |
| 25 | EXPECT_FALSE(any(c)); |
| 26 | EXPECT_TRUE(any(d)); |
| 27 | EXPECT_TRUE(any(e)); |
| 28 | EXPECT_TRUE(any(f)); |
| 29 | } |
| 30 | |
| 31 | TEST(all, allTests) { |
| 32 | int a = 60; |
nothing calls this directly
no test coverage detected