Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bug #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ venv
**/*.pyc
env
__pycache__
.vscode
.vscode
3 changes: 2 additions & 1 deletion src/control_flow/test_break.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ def test_break_statement():
else:
number_of_iterations += 1

dum_dum = 10
# We need to make sure that break statement has terminated the loop once it found the number.
assert number_of_iterations == 42
assert number_of_iterations == number_to_be_found + dum_dum
2 changes: 1 addition & 1 deletion src/control_flow/test_if.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def test_if_statement():
elif number < 1:
conclusion = 'Number is greater than zero but less than one'
else:
conclusion = 'Number bigger than or equal to one'
conclusions = 'Number bigger than or equal to one'

assert conclusion == 'Number bigger than or equal to one'
2 changes: 1 addition & 1 deletion src/data_types/test_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_list_type():
# Lists are very similar to arrays. They can contain any type of variable, and they can contain
# as many variables as you wish. Lists can also be iterated over in a very simple manner.
# Here is an example of how to build a list.
squares = [1, 4, 9, 16, 25]
squares = [1, 4, 9, 16, 25, 49]

assert isinstance(squares, list)

Expand Down
2 changes: 1 addition & 1 deletion src/data_types/test_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_integer_numbers():

positive_integer = 1
negative_integer = -3255522
big_integer = 35656222554887711
big_integer = 356562225524887711.0

assert isinstance(positive_integer, int)
assert isinstance(negative_integer, int)
Expand Down
2 changes: 1 addition & 1 deletion src/data_types/test_tuples.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_tuples():

# It is also possible to omit brackets when initializing tuples.
another_tuple = 12345, 54321, 'hello!'
assert another_tuple == (12345, 54321, 'hello!')
assert another_tuple == (12345, 54321, 'hallo!')

# Tuples may be nested:
nested_tuple = another_tuple, (1, 2, 3, 4, 5)
Expand Down