From 8ed8f41456daa9355f6e1bc6fba0c479b946cca1 Mon Sep 17 00:00:00 2001 From: Connor Ferster Date: Tue, 11 Jun 2024 15:24:08 -0700 Subject: [PATCH] fix: undo "damage" caused by accidentally 'blackify-ing' the test dir --- test_handcalcs/cell_1.py | 2 +- test_handcalcs/cell_2.py | 7 ++----- test_handcalcs/cell_2b.py | 11 +++-------- test_handcalcs/cell_5.py | 8 +------- test_handcalcs/cell_7.py | 8 +------- test_handcalcs/cell_7b.py | 8 +------- test_handcalcs/cell_8.py | 8 +------- test_handcalcs/cell_9.py | 2 +- 8 files changed, 11 insertions(+), 43 deletions(-) diff --git a/test_handcalcs/cell_1.py b/test_handcalcs/cell_1.py index 4b8160a..bad8232 100644 --- a/test_handcalcs/cell_1.py +++ b/test_handcalcs/cell_1.py @@ -1,5 +1,5 @@ a = 2 # Comment -y = a + 4 # Comment +y = (a + 4) # Comment alpha_eta_psi = 4 / (y ** (a + 1)) # Comment alpha_eta_psi diff --git a/test_handcalcs/cell_2.py b/test_handcalcs/cell_2.py index 54ff59e..4118f39 100644 --- a/test_handcalcs/cell_2.py +++ b/test_handcalcs/cell_2.py @@ -1,8 +1,5 @@ x = 2 -if x < 1: - b = x # Comment -elif x >= 1: - b = x * 1 - c = b # Comment +if x < 1: b = x # Comment +elif x >= 1: b = x * 1; c = b # Comment calc_results = globals() diff --git a/test_handcalcs/cell_2b.py b/test_handcalcs/cell_2b.py index b4b55ef..2304dae 100644 --- a/test_handcalcs/cell_2b.py +++ b/test_handcalcs/cell_2b.py @@ -1,11 +1,6 @@ x = 10 -if x < 1: - b = x # Comment -elif 1 < x < 5: - b = x * 1 - c = b # Comment -else: - b = x * 1 - c = b # Comment +if x < 1: b = x # Comment +elif 1 < x < 5: b = x * 1; c = b # Comment +else: b = x * 1; c = b # Comment calc_results = globals() diff --git a/test_handcalcs/cell_5.py b/test_handcalcs/cell_5.py index 626899e..1998120 100644 --- a/test_handcalcs/cell_5.py +++ b/test_handcalcs/cell_5.py @@ -4,12 +4,6 @@ b = 20000002 c = 30000003 x = 5 -y = ( - sqrt(a / b) - + asin(sin(b / c)) - + (a / b) ** (0.5) - + sqrt((a * b + b * c) / (b**2)) - + sin(a / b) -) # Comment +y = sqrt(a / b)+ asin(sin(b / c)) + (a / b) ** (0.5) + sqrt((a * b + b * c) / (b**2)) + sin(a / b) # Comment calc_results = globals() diff --git a/test_handcalcs/cell_7.py b/test_handcalcs/cell_7.py index 2f379e5..2ec8c64 100644 --- a/test_handcalcs/cell_7.py +++ b/test_handcalcs/cell_7.py @@ -7,12 +7,6 @@ f = c / a + b # Comment g = c * f / a # Comment -d = ( - sqrt(a / b) - + asin(sin(b / c)) - + (a / b) ** (0.5) - + sqrt((a * b + b * c) / (b**2)) - + sin(a / b) -) # Comment +d = sqrt(a / b) + asin(sin(b / c)) + (a / b) ** (0.5) + sqrt((a * b + b * c) / (b**2)) + sin(a / b) # Comment calc_results = globals() diff --git a/test_handcalcs/cell_7b.py b/test_handcalcs/cell_7b.py index 383e41f..53a7b32 100644 --- a/test_handcalcs/cell_7b.py +++ b/test_handcalcs/cell_7b.py @@ -7,12 +7,6 @@ f = causal / alpha_zeta + b_prime_c # Comment g = causal * f / alpha_zeta # Comment -d = ( - sqrt(alpha_zeta / b_prime_c) - + sum((1, 2, 3)) - + (alpha_zeta / b_prime_c) ** (0.5) - + sqrt((alpha_zeta * b_prime_c + b_prime_c) / (1.23e3**2)) - + sin(alpha_zeta / b_prime_c) -) # Comment +d = sqrt(alpha_zeta / b_prime_c) + sum((1, 2, 3)) + (alpha_zeta / b_prime_c) ** (0.5) + sqrt((alpha_zeta * b_prime_c + b_prime_c) / (1.23e3**2)) + sin(alpha_zeta / b_prime_c) # Comment calc_results = globals() diff --git a/test_handcalcs/cell_8.py b/test_handcalcs/cell_8.py index 397b86e..15cb0ae 100644 --- a/test_handcalcs/cell_8.py +++ b/test_handcalcs/cell_8.py @@ -6,12 +6,6 @@ f = c / a + V_dot # Comment g = c * f / a # Comment -d = sqrt( - a / V_dot - + asin(sin(V_dot / c)) - + (a / V_dot) ** (0.5) - + sqrt((a * V_dot + V_dot * c) / (V_dot**2)) - + sin(a / V_dot) -) # Comment +d = sqrt(a / V_dot+ asin(sin(V_dot / c))+ (a / V_dot) ** (0.5)+ sqrt((a * V_dot + V_dot * c) / (V_dot**2))+ sin(a / V_dot)) # Comment calc_results = globals() diff --git a/test_handcalcs/cell_9.py b/test_handcalcs/cell_9.py index 3bdf237..ca2f437 100644 --- a/test_handcalcs/cell_9.py +++ b/test_handcalcs/cell_9.py @@ -3,7 +3,7 @@ mu = 0.44 CritSeg = 1.5 # sendo extramemente Delta_h = 9.641 -Raio = 200 / 2 # Config +Raio = (200 / 2) # Config Raio_Minimo = CritSeg * Delta_h / (sin(atan(mu + 1) + 1)) ** 2 calc_results = globals()