From f5b63bf9327d1defe89ffac1ced936cc3195d3ae Mon Sep 17 00:00:00 2001 From: James Hanlon Date: Sat, 28 Oct 2023 15:34:51 +0100 Subject: [PATCH] Fix unit test --- tools/netlist/tests/VariableSelectorsTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/netlist/tests/VariableSelectorsTests.cpp b/tools/netlist/tests/VariableSelectorsTests.cpp index fa0e77440..281942d7f 100644 --- a/tools/netlist/tests/VariableSelectorsTests.cpp +++ b/tools/netlist/tests/VariableSelectorsTests.cpp @@ -344,8 +344,8 @@ endmodule CHECK(getBitRange(netlist, "foo[a+:1]") == ConstantRange(0, 7)); CHECK(getBitRange(netlist, "foo[a-:2]") == ConstantRange(0, 7)); CHECK(getBitRange(netlist, "foo[1][a]") == ConstantRange(4, 5)); - CHECK(getBitRange(netlist, "foo[1][a+:1]") == ConstantRange(2, 3)); - CHECK(getBitRange(netlist, "foo[1][a-:2]") == ConstantRange(2, 3)); + CHECK(getBitRange(netlist, "foo[1][a+:1]") == ConstantRange(4, 5)); + CHECK(getBitRange(netlist, "foo[1][a-:2]") == ConstantRange(4, 5)); } //===---------------------------------------------------------------------===//