Skip to content
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
Empty file added __init__.py
Empty file.
2 changes: 1 addition & 1 deletion hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def HelloWorld():
return

def HomePlanet():
planet = input("What is your home planet? Inster here: ")
planet = input("What is your home planet? Enter here: ")
print(planet + ", I heard the weather sucks there.")
return

Expand Down
16 changes: 16 additions & 0 deletions test_rigged.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from .rigged import Rigged_RNG


def test_less_than(monkeypatch):
monkeypatch.setattr("numpy.random.rand", lambda: 0.3)
monkeypatch.setattr("numpy.random.rand", lambda: 0.7)

result = Rigged_RNG(5, 0.75, 10)
assert result == 5

def test_more_than(monkeypatch):
monkeypatch.setattr("numpy.random.rand", lambda: 0.7)
monkeypatch.setattr("numpy.random.rand", lambda: 0.3)

result = Rigged_RNG(5, 0.75, 10)
assert result == 5