Skip to content

Commit 8a4ed91

Browse files
committed
12-Rand-From-One-to-Twelve
1 parent f0809f9 commit 8a4ed91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exercises/12-Rand-From-One-to-Twelve/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
def get_randomInt():
44
# Your code here
5-
5+
return random.randrange(1,13)
66

77
print(get_randomInt())

exercises/12-Rand-From-One-to-Twelve/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_function_existence(app):
2222
def test_conditional():
2323
with open(path, 'r') as content_file:
2424
content = content_file.read()
25-
pattern = r"random_number(\s*)=(\s*)random\.randrange+\(1,13\)"
25+
pattern = r"random\.randrange+\(1,13\)"
2626
regex = re.compile(pattern)
2727
assert bool(regex.search(content)) == True
2828

0 commit comments

Comments
 (0)