Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5427458

Browse files
committed
fixed some typing errors and tests description
1 parent 6caec3e commit 5427458

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎exercises/07-Do_while/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# `07` D0 While
22

33
DO DO DO
4-
The do while() is another loop example in python is less commonly used but it is a loop.
4+
The `while()` function is another loop example in python is less commonly used but it is a loop.
55

66
```py
77
x = 1

‎exercises/07-Do_while/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def test_output(capsys, app):
1212
def test_for_loop():
1313
with open(path, 'r') as content_file:
1414
content = content_file.read()
15-
regex = re.compile(r"while(\s)+[a-zA-Z\-_]+(\s)")
15+
# regex = re.compile(r"while(\s)+[a-zA-Z\-_]+(\s)") only checks for one character before the space.
16+
regex = re.compile(r"while(\s)\S*")
1617
assert bool(regex.search(content)) == True
1718

1819
@pytest.mark.it("Use if statement")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /