mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-06 07:03:11 +00:00
15 lines
356 B
Python
15 lines
356 B
Python
from unittest import TestCase
|
|
|
|
from .bigger import Bigger
|
|
|
|
|
|
class TestBigger(TestCase):
|
|
def test_bigger(self):
|
|
bigger = Bigger(3)
|
|
proof = bigger.prove(5)
|
|
bigger.verify(proof)
|
|
|
|
# If we try to reuse the proof for a different Bigger instance, it fails
|
|
bigger_4 = Bigger(4)
|
|
assert not bigger_4.verify(proof)
|