style: simplify tests

* tests/types.at: Simplify C++ instantiations.
This commit is contained in:
Akim Demaille
2018-12-22 11:28:10 +01:00
parent 6e9f9fcafc
commit a8e66fc010

View File

@@ -285,7 +285,7 @@ m4_foreach([b4_skel], [[yacc.c], [glr.c], [lalr1.cc], [glr.cc]],
[if (res == '1')
AT_VAL.build (std::make_pair (10, 11));
else if (res == '2')
AT_VAL.build (std::make_pair<std::string, std::string> ("two", "deux"));],
AT_VAL.build (std::pair<std::string, std::string> ("two", "deux"));],
[10:11, two:deux])
# Move-only types, and variadic emplace.
@@ -321,7 +321,7 @@ m4_foreach([b4_skel], [[yacc.c], [glr.c], [lalr1.cc], [glr.cc]],
[[if (res == '1')
return yy::parser::make_ONE (std::make_unique<int> (10));
else if (res == '2')
return yy::parser::make_TWO (std::make_pair<int, int> (21, 22));
return yy::parser::make_TWO (std::make_pair (21, 22));
else
return yy::parser::make_EOI ()]],
[10, 21, 22],