Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
should
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
should
Commits
94bfdbf5
Commit
94bfdbf5
authored
Apr 01, 2019
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo/modifiers.should: command-line --mod should override test modifiers
Opens
#43
.
parent
f053e9ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
demo/modifiers.should
demo/modifiers.should
+15
-10
No files found.
demo/modifiers.should
View file @
94bfdbf5
!OPTIONS: --mod w
# Modifiers given through the !OPTIONS line apply to every test.
LC_ALL=C cal 2001
# Here tests with `w` count all occurrences, even when they are on the same line.
LC_ALL=C cal 2001
$ 7 months have 31 days
w7: 31
# Uppercase modifiers cancel previous modifiers
$ 5 lines have a '31' day
wW5: 31
# Here tests with `w` count all occurrences, even when they are on the same line.
# Modifiers given through the command line or through !OPTIONS apply to every test.
!OPTIONS: --mod w
LC_ALL=C cal 2001
$ 7 months have 31 days
7: 31
...
...
@@ -14,9 +23,5 @@ $ 7 months have 31 days
$ 11 months have 30 days or more
11: 30
# Uppercase modifiers cancel previous modifiersrs.
$ 5 lines have a '31' day
W5: 31
$ 7 months have a '31' day (W is here overriden by --mod w)
W7: 31
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment