From a40bcab8af4fb317aa6ede08b22e541685472233 Mon Sep 17 00:00:00 2001 From: eltithecoder Date: Wed, 13 Dec 2023 19:31:55 +0100 Subject: [PATCH 1/2] fixing bug012 --- source/BUG/mathematics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/BUG/mathematics.py b/source/BUG/mathematics.py index 6dcf5f2..c880ae6 100644 --- a/source/BUG/mathematics.py +++ b/source/BUG/mathematics.py @@ -4,7 +4,7 @@ def example_pr() -> bool: ''' BUG000: This is an example bug. ''' - result = False + result = True return result def add_values(a: int, b: int) -> int: @@ -97,7 +97,7 @@ def sin_value(a: float) -> float: ''' BUG012: sin_value should return the sine of the value, not the cosine. ''' - result = math.cos(a) + result = math.sin(a) return result From ea4240e5e4ba0897b54e79aaa7fe29dd59cb99cc Mon Sep 17 00:00:00 2001 From: eltithecoder Date: Wed, 13 Dec 2023 19:39:46 +0100 Subject: [PATCH 2/2] fix BUG019 --- source/BUG/mathematics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/BUG/mathematics.py b/source/BUG/mathematics.py index c880ae6..35b9d72 100644 --- a/source/BUG/mathematics.py +++ b/source/BUG/mathematics.py @@ -97,7 +97,7 @@ def sin_value(a: float) -> float: ''' BUG012: sin_value should return the sine of the value, not the cosine. ''' - result = math.sin(a) + result = math.cos(a) return result @@ -153,7 +153,7 @@ def deg_value(a: float) -> float: ''' BUG019: deg_value should return the degree of the value, not the radiant. ''' - result = math.radians(a) + result = math.degrees(a) return result