Methode zum Aufruf aller Tests hinzugefügt

main
Gideon Regehr 2023-05-22 11:13:13 +02:00
parent 0018c0cf07
commit a28c0b5460
1 changed files with 15 additions and 0 deletions

View File

@ -7,6 +7,21 @@ from scipy import stats
class StartUPTest: class StartUPTest:
@staticmethod
def run_all_tests(binary_data: str):
# Run monobit_test
p_value, result = StartUPTest.monobit_test(binary_data)
if not result:
return False
# Run chi_square
p_value, result, chi2_statistic = StartUPTest.chi_square(binary_data)
if not result:
return False
# All tests passed
return True
@staticmethod @staticmethod
def monobit_test(binary_data: str): def monobit_test(binary_data: str):