Rob Austein 7 ヶ月 前
コミット
7ef69b89b6
3 ファイル変更13 行追加0 行削除
  1. 1 0
      .gitignore
  2. 0 0
      test1.py
  3. 12 0
      test2.py

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+__pycache__

+ 0 - 0
test.py → test1.py


+ 12 - 0
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)