Skip to content

Commit 019a0dc

Browse files
authored
Merge pull request #11 from plucodev/master
fixed issues 14 test
2 parents 5cc891a + 41f3408 commit 019a0dc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

exercises/14-Rand-From-One-to-Six/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `14` Rand From 0 to 12
1+
# `14` Rand From 1 to 12
22

33

44
## 📝 Instructions:
@@ -9,7 +9,6 @@ This time use **randrange()**
99
## 💡 Hint:
1010

1111
- It should print between 1 and 12, not between 0 and 12.
12-
- Use randrange(n) (Specify only 1 argument, randrange(99))
1312
- This exercise is super simple, don't over complicate things....
1413

1514

exercises/14-Rand-From-One-to-Six/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ def test_conditional():
1515
content = [x.strip() for x in content]
1616
my_print = [s for s in content if "random_number =" in s]
1717
my_printVar = content.index(my_print[0])
18-
regex = r"random_number(\s*)=(\s*)random\.randrange+\(13\)"
18+
regex = r"random_number(\s*)=(\s*)random\.randrange+\(1,13\)"
1919
assert re.match(regex, content[my_printVar])

0 commit comments

Comments
 (0)