Skip to content

Commit f572bce

Browse files
committed
fixed some test
1 parent 6a90d33 commit f572bce

File tree

12 files changed

+43
-35
lines changed

12 files changed

+43
-35
lines changed

exercises/001-hello_world/README.es.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ Cada idioma tiene funciones para integrarse con la consola, ya que al principio
66

77
Hoy en día, la impresión en la consola se utiliza sobre todo como herramienta de monitoreo, ideal para dejar un rastro del contenido de las variables durante la ejecución del programa.
88

9+
## 📝 Instrucciones:
10+
11+
1. Usa la función `print()` para escribir `"Hello World"` en la consola. Siéntete libre de intentar otras cosas también.
12+
913
## Ejemplo:
1014

1115
```py
1216
print("How are you?")
1317
```
1418

15-
## 📝 Instrucciones:
16-
17-
1. Usa la función `print()` para escribir `"Hello World"` en la consola. Siéntete libre de intentar otras cosas también.
18-
1919
## 💡 Pista:
2020

2121
+ Video de 5 minutos sobre [la consola](https://www.youtube.com/watch?v=vROGBvX_MHQ)

exercises/001-hello_world/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ Every language has a console, as it was the only way to interact with the users
66

77
Today, printing in the console is used mostly as a monitoring tool, ideal to leave a trace of the content of variables during the program execution.
88

9+
## 📝 Instructions:
10+
11+
1. Use the `print()` function to print `"Hello World"` on the console. Feel free to try other things as well.
12+
913
## Example:
1014

1115
```py
1216
print("How are you?")
1317
```
1418

15-
## 📝 Instructions:
16-
17-
1. Use the `print()` function to print `"Hello World"` on the console. Feel free to try other things as well.
18-
1919
## 💡 Hint:
2020

2121
+ 5 minutes video about [the console](https://www.youtube.com/watch?v=1RlkftxAo-M)

exercises/002-sum_of_three_numbers/README.es.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66

77
## Ejemplo de entrada:
88

9-
+ 2
10-
+ 3
11-
+ 6
9+
```py
10+
2
11+
3
12+
6
13+
```
1214

1315
## Ejemplo de salida:
1416

15-
+ 11
17+
```py
18+
11
19+
```
1620

exercises/002-sum_of_three_numbers/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66

77
## Example input:
88

9-
+ 2
10-
+ 3
11-
+ 6
9+
```py
10+
2
11+
3
12+
6
13+
```
1214

1315
## Example output:
1416

15-
+ 11
17+
```py
18+
11
19+
```
1620

exercises/003-area_of_right_triangle/test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ def test_function_exists(capsys, app):
99
raise AttributeError("The function 'area_of_triangle' should exist on app.py")
1010

1111
@pytest.mark.it('The function must return something')
12-
def test_convert_inputs(capsys, app):
12+
def test_function_returns(capsys, app):
1313
result = app.area_of_triangle(1, 2)
1414
assert result != None
1515

1616
@pytest.mark.it('The function must return a number')
17-
def test_convert_inputs(capsys, app):
18-
result = app.area_of_triangle(1, 2)
19-
assert type(result) == type(1)
17+
def test_function_return_type(capsys, app):
18+
result = app.area_of_triangle(1,2)
19+
assert type(result) == type(1*2/2)
2020

2121
@pytest.mark.it('The solution should return the expected output. Testing with 3 and 5')
2222
def test_convert_inputs(capsys, app):

exercises/004-hello_harry/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ def test_for_functon_existence(capsys, app):
55
assert callable(app.hello_name)
66

77
@pytest.mark.it('The function must return something')
8-
def test_convert_inputs(capsys, app):
8+
def test_function_return(capsys, app):
99
result = app.hello_name('test')
1010
assert result != None
1111

1212
@pytest.mark.it('The function must return a string')
13-
def test_convert_inputs(capsys, app):
13+
def test_function_return_type(capsys, app):
1414
result = app.hello_name('test')
1515
assert type(result) == type('')
1616

exercises/005-previous_and_next/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ def test_for_functon_existence(capsys, app):
55
assert callable(app.previous_next)
66

77
@pytest.mark.it('The function must return something')
8-
def test_for_file_output(capsys, app):
8+
def test_function_return(capsys, app):
99
assert app.previous_next(6) != None
1010

1111
@pytest.mark.it('The function return a tuple')
12-
def test_for_file_output(capsys, app):
12+
def test_function_return_type(capsys, app):
1313
result = app.previous_next(6)
14-
assert type(resul) == type((1,2))
14+
assert type(result) == type((1,2))
1515

1616
@pytest.mark.it('The function previous_next must return the correct output')
1717
def test_for_file_output(capsys, app):

exercises/006-apple_sharing/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ def test_for_functon_existence(capsys, app):
55
assert callable(app.apple_sharing)
66

77
@pytest.mark.it('The function must return something')
8-
def test_for_file_output(capsys, app):
8+
def test_function_return(capsys, app):
99
assert app.apple_sharing(10, 54) != None
1010

1111
@pytest.mark.it('The function must return a tuple')
12-
def test_for_file_output(capsys, app):
12+
def test_function_return_type(capsys, app):
1313
result = app.apple_sharing(10, 54)
1414
assert type(result) == type((1,2))
1515

exercises/006.1-square_value_of_number/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ def test_for_functon_existence(capsys, app):
55
assert callable(app.square)
66

77
@pytest.mark.it('The function must return something')
8-
def test_for_file_output(capsys, app):
8+
def test_function_return(capsys, app):
99
assert app.square(2) != None
1010

1111
@pytest.mark.it('The function must return a number')
12-
def test_for_file_output(capsys, app):
12+
def test_function_return_type(capsys, app):
1313
result = app.square(6)
1414
assert type(result) == type(1)
1515

exercises/007-hours_and_minutes/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ def test_for_functon_existence(capsys, app):
55
assert callable(app.hours_minutes)
66

77
@pytest.mark.it('The function must return something')
8-
def test_for_file_output(capsys, app):
8+
def test_function_return(capsys, app):
99
assert app.hours_minutes(60) != None
1010

1111
@pytest.mark.it('The function must return a tuple')
12-
def test_for_file_output(capsys, app):
12+
def test_function_return_type(capsys, app):
1313
result = app.hours_minutes(60)
1414
assert type(result) == type((1,2))
1515

0 commit comments

Comments
 (0)