Methode zum Aufruf aller Tests hinzugefügt
parent
0018c0cf07
commit
a28c0b5460
|
@ -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):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue