From 7ef69b89b6f6c11919e5fe7927f96a1fa83d12d7 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 12 Apr 2024 15:21:31 -0400 Subject: More tests --- test2.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 test2.py (limited to 'test2.py') diff --git a/test2.py b/test2.py new file mode 100755 index 0000000..69c8ae1 --- /dev/null +++ b/test2.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python3 + +from rfc1982_serial_number import Serial +from random import randint +from subprocess import run + +for test in range(10000): + i1 = randint(0, Serial.modulus - 1) + i2 = randint(0, Serial.modulus - 1) + cmd = "./rfc1982_serial_number.py", str(i1), str(i2) + print(f"\nTest: {test}: {cmd[0]} {cmd[1]} {cmd[2]}") + run(cmd) -- cgit v1.2.3