2
0
mirror of https://github.com/boostorg/lambda.git synced 2026-01-23 17:42:52 +00:00

added tests for empty case statements

[SVN r14015]
This commit is contained in:
Jaakko Järvi
2002-05-22 19:48:02 +00:00
parent e057f63a54
commit 2f24d3f261

View File

@@ -351,11 +351,30 @@ void do_switch_yes_defaults_tests() {
}
void test_empty_cases() {
using namespace boost::lambda;
// ---
switch_statement(
_1,
default_statement()
)(make_const(1));
switch_statement(
_1,
case_statement<1>()
)(make_const(1));
}
int test_main(int, char* []) {
do_switch_no_defaults_tests();
do_switch_yes_defaults_tests();
test_empty_cases();
return EXIT_SUCCESS;
}