Skip to content

Commit 66fdad3

Browse files
committed
Fix naming in BIfTest
1 parent 4da9d68 commit 66fdad3

File tree

1 file changed

+6
-6
lines changed
  • src/virtual-machine/src/test/java/org/smoothbuild/virtualmachine/bytecode/expr/base

1 file changed

+6
-6
lines changed

src/virtual-machine/src/test/java/org/smoothbuild/virtualmachine/bytecode/expr/base/BIfTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,24 +52,24 @@ protected List<BIf> nonEqualExprs() throws BytecodeException {
5252

5353
@Test
5454
void if_can_be_read_back_by_hash() throws Exception {
55-
var ifB = bIf(bBool(true), bInt(1), bInt(2));
56-
assertThat(exprDbOther().get(ifB.hash())).isEqualTo(ifB);
55+
var bIf = bIf(bBool(true), bInt(1), bInt(2));
56+
assertThat(exprDbOther().get(bIf.hash())).isEqualTo(bIf);
5757
}
5858

5959
@Test
6060
void if_read_back_by_hash_has_same_sub_expressions() throws Exception {
6161
var condition = bBool(true);
6262
var then_ = bInt(1);
6363
var else_ = bInt(2);
64-
var ifB = bIf(condition, then_, else_);
65-
assertThat(((BIf) exprDbOther().get(ifB.hash())).subExprs())
64+
var bIf = bIf(condition, then_, else_);
65+
assertThat(((BIf) exprDbOther().get(bIf.hash())).subExprs())
6666
.isEqualTo(new BSubExprs(condition, then_, else_));
6767
}
6868

6969
@Test
7070
void to_string() throws Exception {
71-
var ifB = bIf(bBool(true), bInt(1), bInt(2));
72-
assertThat(ifB.toString())
71+
var bIf = bIf(bBool(true), bInt(1), bInt(2));
72+
assertThat(bIf.toString())
7373
.isEqualTo(
7474
"""
7575
BIf(

0 commit comments

Comments
 (0)