Update testcase when shifting BigInteger with a negative value
@@ -46,8 +46,9 @@ class TestContract(BoaTest):
self.assertEqual(len(results), 1)
self.assertEqual(results[0].GetBigInteger(), 64)
+ with self.assertRaises(ValueError) as context:
tx, results, total_ops, engine = TestBuild(out, ['<<', 16, -2], self.GetWallet1(), '', '07')
- self.assertEqual(len(results), 0)
+ self.assertTrue("negative shift count" in str(context.exception))
tx, results, total_ops, engine = TestBuild(out, ['<<', 4, 5], self.GetWallet1(), '', '07')
self.assertEqual(len(results), 1)
