Skip to content

Commit

Permalink
Add negative tests one more
Browse files Browse the repository at this point in the history
  • Loading branch information
dayo09 committed Jan 23, 2025
1 parent 17590cf commit 1fade8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compiler/luci/pass/src/ExpandBroadcastConstPass.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ TEST_F(ExpandBroadcastRank2ConstTest, remove_broadcast)
}
}

TEST_F(ExpandBroadcastRank2ConstTest, broadcast_impossible_NEG)
{
_y->shape({N, D + 1});
_y->size<loco::DataType::FLOAT32>(N * (D + 1));

luci::ExpandBroadcastConstPass pass;
ASSERT_FALSE(pass.run(&_g));
}

TEST_F(ExpandBroadcastRank2ConstTest, broadcast_diff_rank_NEG)
{
_y->shape({N});
Expand Down

0 comments on commit 1fade8b

Please sign in to comment.