Skip to content

Commit

Permalink
fix negative prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbencer committed Nov 27, 2024
1 parent d698e5b commit 9e52e6c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ TEST_F(GenModelTest, OneOp_ExpandDims_Int64AxisNeg)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_ExpandDims_Axis)
TEST_F(GenModelTest, neg_OneOp_ExpandDims_Axis)
{
CircleGen cgen;

Expand All @@ -75,7 +75,7 @@ TEST_F(GenModelTest, OneOp_neg_ExpandDims_Axis)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_ExpandDims_NegAxis)
TEST_F(GenModelTest, neg_OneOp_ExpandDims_NegAxis)
{
CircleGen cgen;

Expand All @@ -94,7 +94,7 @@ TEST_F(GenModelTest, OneOp_neg_ExpandDims_NegAxis)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_ExpandDims_AxisNegInput)
TEST_F(GenModelTest, neg_OneOp_ExpandDims_AxisNegInput)
{
CircleGen cgen;

Expand Down
14 changes: 7 additions & 7 deletions tests/nnfw_api/src/GenModelTests/one_op_tests/Reshape.test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "GenModelTest.h"

TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_shape)
TEST_F(GenModelTest, neg_OneOp_Reshape_invalid_target_shape)
{
CircleGen cgen;
const auto f32 = circle::TensorType::TensorType_FLOAT32;
Expand All @@ -39,7 +39,7 @@ TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_shape)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_dyn_shape)
TEST_F(GenModelTest, neg_OneOp_Reshape_invalid_target_dyn_shape)
{
CircleGen cgen;
const auto f32 = circle::TensorType::TensorType_FLOAT32;
Expand All @@ -64,7 +64,7 @@ TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_dyn_shape)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_dyn_type)
TEST_F(GenModelTest, neg_OneOp_Reshape_invalid_target_dyn_type)
{
CircleGen cgen;
const auto f32 = circle::TensorType::TensorType_FLOAT32;
Expand All @@ -88,7 +88,7 @@ TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_dyn_type)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_shape_with_neg_dim)
TEST_F(GenModelTest, neg_OneOp_Reshape_invalid_target_shape_with_neg_dim)
{
CircleGen cgen;
const auto f32 = circle::TensorType::TensorType_FLOAT32;
Expand All @@ -111,7 +111,7 @@ TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_shape_with_neg_dim)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_dyn_shape_with_neg_dim)
TEST_F(GenModelTest, neg_OneOp_Reshape_invalid_target_dyn_shape_with_neg_dim)
{
CircleGen cgen;
const auto f32 = circle::TensorType::TensorType_FLOAT32;
Expand All @@ -136,7 +136,7 @@ TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_dyn_shape_with_neg_dim)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_shape_with_zero_dim)
TEST_F(GenModelTest, neg_OneOp_Reshape_invalid_target_shape_with_zero_dim)
{
CircleGen cgen;
const auto f32 = circle::TensorType::TensorType_FLOAT32;
Expand All @@ -159,7 +159,7 @@ TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_shape_with_zero_dim)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_Reshape_invalid_target_dyn_shape_with_zero_dim)
TEST_F(GenModelTest, neg_OneOp_Reshape_invalid_target_dyn_shape_with_zero_dim)
{
CircleGen cgen;
const auto f32 = circle::TensorType::TensorType_FLOAT32;
Expand Down
8 changes: 4 additions & 4 deletions tests/nnfw_api/src/GenModelTests/one_op_tests/Squeeze.test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include "GenModelTest.h"

TEST_F(GenModelTest, OneOp_neg_Squeeze_invalid_dims)
TEST_F(GenModelTest, neg_OneOp_Squeeze_invalid_dims)
{
CircleGen cgen;
const std::vector<int32_t> squeeze_dims{0, 1}; // 1 dim here is incorrect
Expand All @@ -35,7 +35,7 @@ TEST_F(GenModelTest, OneOp_neg_Squeeze_invalid_dims)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_Squeeze_out_of_rank_dims)
TEST_F(GenModelTest, neg_OneOp_Squeeze_out_of_rank_dims)
{
CircleGen cgen;
const std::vector<int32_t> squeeze_dims{0, 4}; // 4 dim here is incorrect
Expand All @@ -54,7 +54,7 @@ TEST_F(GenModelTest, OneOp_neg_Squeeze_out_of_rank_dims)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_Squeeze_neg_invalid_dims)
TEST_F(GenModelTest, neg_OneOp_Squeeze_neg_invalid_dims)
{
CircleGen cgen;
const std::vector<int32_t> squeeze_dims{0, -3}; // -3 dim here is incorrect
Expand All @@ -73,7 +73,7 @@ TEST_F(GenModelTest, OneOp_neg_Squeeze_neg_invalid_dims)
SUCCEED();
}

TEST_F(GenModelTest, OneOp_neg_Squeeze_neg_out_of_rank_dims)
TEST_F(GenModelTest, neg_OneOp_Squeeze_neg_out_of_rank_dims)
{
CircleGen cgen;
const std::vector<int32_t> squeeze_dims{0, -5}; // -5 dim here is incorrect
Expand Down

0 comments on commit 9e52e6c

Please sign in to comment.