Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
5e80c53c
Commit
5e80c53c
authored
8 years ago
by
Rami Ali
Committed by
Damien George
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tests/extmod: Improve test coverage of ure module.
parent
d7150b09
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/extmod/ure1.py
+4
-0
4 additions, 0 deletions
tests/extmod/ure1.py
tests/extmod/ure_split_notimpl.py
+7
-0
7 additions, 0 deletions
tests/extmod/ure_split_notimpl.py
tests/extmod/ure_split_notimpl.py.exp
+1
-0
1 addition, 0 deletions
tests/extmod/ure_split_notimpl.py.exp
with
12 additions
and
0 deletions
tests/extmod/ure1.py
+
4
−
0
View file @
5e80c53c
...
...
@@ -11,6 +11,10 @@ try:
except
IndexError
:
print
(
"
IndexError
"
)
# conversion of re and match to string
str
(
r
)
str
(
m
)
r
=
re
.
compile
(
"
(.+)1
"
)
m
=
r
.
match
(
"
xyz781
"
)
print
(
m
.
group
(
0
))
...
...
This diff is collapsed.
Click to expand it.
tests/extmod/ure_split_notimpl.py
0 → 100644
+
7
−
0
View file @
5e80c53c
import
ure
as
re
r
=
re
.
compile
(
'
( )
'
)
try
:
s
=
r
.
split
(
"
a b c foobar
"
)
except
NotImplementedError
:
print
(
'
NotImplementedError
'
)
This diff is collapsed.
Click to expand it.
tests/extmod/ure_split_notimpl.py.exp
0 → 100644
+
1
−
0
View file @
5e80c53c
NotImplementedError
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