Skip to content

Commit

Permalink
add const array vs collection equality test;
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Dec 5, 2018
1 parent dda0cce commit 4e90987
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/scala/sigmastate/utxo/BasicOpsSpecification.scala
Expand Up @@ -412,4 +412,13 @@ class BasicOpsSpecification extends SigmaTestingCommons {
true
)
}

property("EQ const array vs collection") {
val byteArrayVar1Value = ByteArrayConstant(Array[Byte](1.toByte, 2.toByte))
test(env + ("byteArrayVar1" -> byteArrayVar1Value), ext,
"byteArrayVar1 == Array[Byte](1.toByte, 2.toByte)",
EQ(byteArrayVar1Value, ConcreteCollection(Vector(ByteConstant(1), ByteConstant(2)), SByte)),
true
)
}
}

0 comments on commit 4e90987

Please sign in to comment.