commit a8e66fc010925f89d8972d8da48790440473fcd1
Author: Akim Demaille <[email protected]>
Date: Sat Dec 22 11:28:10 2018 +0100
style: simplify tests
* tests/types.at: Simplify C++ instantiations.
diff --git a/tests/types.at b/tests/types.at
index 2289f751..c52b6777 100644
--- a/tests/types.at
+++ b/tests/types.at
@@ -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],