File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
exercises/14-Your-First-Loop Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 44
551 . Ejecuta este código, verás una cuenta de 0 a 9 (caracteres blancos).
66
7- 2 . Corrígelo para que cuente hasta 11, verás 101 en verde después ¿Puedes?
7+ 2 . Corrígelo para que cuente hasta 11.
88
99## 🔎 Importante:
1010
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ tutorial: "https://www.youtube.com/watch?v=30sizcnVdGg"
88
991 . Run this code, you'll see a count from 0 to 9 (White characters).
1010
11- 2 . Fix it so that it counts up to 11, you'll see 101 on green afterwards. Can you?
11+ 2 . Fix it so that it counts up to 11.
1212
1313## 🔎 Important:
1414
Original file line number Diff line number Diff line change @@ -27,9 +27,4 @@ def test_for_loop():
2727 with open (path , 'r' ) as content_file :
2828 content = content_file .read ()
2929 regex = re .compile (r"for\s*" )
30- assert bool (regex .search (content )) == True
31-
32- @pytest .mark .it ("1. You should return a list of number between 0 and 11" )
33- def test_for_file_output (capsys ):
34- captured = buffer .getvalue ()
35- assert captured == "0\n 1\n 2\n 3\n 4\n 5\n 6\n 7\n 8\n 9\n 10\n 11\n " #add \n because the console jumps the line on every print
30+ assert bool (regex .search (content )) == True
You can’t perform that action at this time.
0 commit comments