Skip to content

Commit 2e935b6

Browse files
committed
test: fix syntax to lower to braces
1 parent 64749c1 commit 2e935b6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
main: () = {
22
vec: type == std::vector<int>;
3-
v: vec = (0);
4-
v = ();
5-
[[assert: v == vec()]]
6-
v = (1);
7-
[[assert: v == vec(1)]]
8-
v = (2, 3);
9-
[[assert: v == vec(2, 3)]]
3+
v: vec = (0);
4+
v = ();
5+
[[assert: v == :vec = ()]]
6+
v = (1);
7+
[[assert: v == :vec = (1)]]
8+
v = (2, 3);
9+
[[assert: v == :vec = (2, 3)]]
1010
}

regression-tests/test-results/pure2-bugfix-for-assign-expression-list.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ auto main() -> int;
2020
auto main() -> int{
2121
using vec = std::vector<int>;
2222
vec v {0};
23-
v = { };
24-
cpp2::Default.expects(v==vec(), "");
25-
v = { 1 };
26-
cpp2::Default.expects(v==vec(1), "");
27-
v = { 2, 3 };
28-
cpp2::Default.expects(std::move(v)==vec(2, 3), "");
23+
v = { };
24+
cpp2::Default.expects(v==vec{}, "");
25+
v = { 1 };
26+
cpp2::Default.expects(v==vec{1}, "");
27+
v = { 2, 3 };
28+
cpp2::Default.expects(std::move(v)==vec{2, 3}, "");
2929
}
3030

0 commit comments

Comments
 (0)