Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Language Detection
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
1MAE002 - ALGORITHM AND COMPUTING
Language Detection
Commits
63871057
Verified
Commit
63871057
authored
Sep 17, 2024
by
STEVAN Antoine
Browse files
Options
Downloads
Patches
Plain Diff
test that `read_text` keeps symbols
parent
fa74c582
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/symbols.txt
+1
-0
1 addition, 0 deletions
tests/symbols.txt
tests/test_read_text.py
+1
-0
1 addition, 0 deletions
tests/test_read_text.py
with
2 additions
and
0 deletions
tests/symbols.txt
0 → 100644
+
1
−
0
View file @
63871057
THIS IS A (SAMPLE) TEXT, CONTAINING (A LOT OF) PUNCTUATION!!
This diff is collapsed.
Click to expand it.
tests/test_read_text.py
+
1
−
0
View file @
63871057
...
...
@@ -4,3 +4,4 @@ def test_read_text():
assert
read_text
(
"
tests/sample.txt
"
)
==
"
this is a sample text file
\n
"
assert
read_text
(
"
tests/empty.txt
"
)
==
""
assert
read_text
(
"
tests/multiline.txt
"
)
==
"
i
\n
am
\n
a
\n
multiline
\n
text
\n
"
assert
read_text
(
"
tests/symbols.txt
"
)
==
"
this is a (sample) text, containing (a lot of) punctuation!!
\n
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment