diff --git a/Python_Tests/StartUpTest.py b/Python_Tests/StartUpTest.py index 8154054..64fefeb 100644 --- a/Python_Tests/StartUpTest.py +++ b/Python_Tests/StartUpTest.py @@ -7,6 +7,21 @@ from scipy import stats 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 def monobit_test(binary_data: str):