Skip to content

Commit

Permalink
Add more ternary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
N00byEdge committed Nov 19, 2019
1 parent d7ec8a8 commit fac2ead
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/ASTzerTests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,7 @@ TEST(ASTizer, TernaryOperator) {
st.emplace_back(std::move(est));

ASTize({randomIdent(), "?"_token, randomIdent(), ":"_token, randomIdent(), ";"_token}, st);
ASTize({randomIdent(), "+"_token, randomIdent(), "?"_token, randomIdent(), ":"_token, randomIdent(), ";"_token}, st);
ASTize({randomIdent(), "?"_token, randomIdent(), "+"_token, randomIdent(), ":"_token, randomIdent(), ";"_token}, st);
ASTize({randomIdent(), "?"_token, randomIdent(), ":"_token, randomIdent(), "+"_token, randomIdent(), ";"_token}, st);
}

0 comments on commit fac2ead

Please sign in to comment.