Skip to content

Commit

Permalink
fixed ConstantTernary test to actually use the ConstantTernary
Browse files Browse the repository at this point in the history
  • Loading branch information
rdaly525 committed Jun 18, 2019
1 parent 953c5a1 commit 739e000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ TEST(BasicTests, TestConstantTernaryOp) {
vAST::ConstantUnaryOp un_op(&x, vAST::UnOp::INVERT);
vAST::NumericLiteral zero("0");
vAST::NumericLiteral one("1");
vAST::TernaryOp tern_op(&un_op, &one, &zero);
vAST::ConstantTernaryOp tern_op(&un_op, &one, &zero);
EXPECT_EQ(tern_op.toString(), "~ x ? 32'd1 : 32'd0");
}

Expand Down

0 comments on commit 739e000

Please sign in to comment.