mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
fix: update to use local app/ dir (#1872)
* fix: update to use local app/ dir * fix: update if statement on macos xlarge
This commit is contained in:
15
app/calculator.py
Normal file
15
app/calculator.py
Normal file
@@ -0,0 +1,15 @@
|
||||
class Calculator:
|
||||
|
||||
def add(x, y):
|
||||
return x + y
|
||||
|
||||
def subtract(x, y):
|
||||
return x - y
|
||||
|
||||
def multiply(x, y):
|
||||
return x * y
|
||||
|
||||
def divide(x, y):
|
||||
if y == 0:
|
||||
return 'Cannot divide by 0'
|
||||
return x * 1.0 / y
|
||||
Reference in New Issue
Block a user