Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
token_modifier
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
Show more breadcrumbs
project
token_modifier
Commits
66dd6030
Commit
66dd6030
authored
3 months ago
by
Jo Fitzgerald
Browse files
Options
Downloads
Patches
Plain Diff
Add multibyte string tests for TitleCase and UpperCaseFirst
parent
8d223637
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!5
Resolve #3492819 "Use multibyte uppercase lowercase functions"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/src/Unit/TitleCaseTest.php
+1
-0
1 addition, 0 deletions
tests/src/Unit/TitleCaseTest.php
tests/src/Unit/UpperCaseFirstTest.php
+1
-0
1 addition, 0 deletions
tests/src/Unit/UpperCaseFirstTest.php
with
2 additions
and
0 deletions
tests/src/Unit/TitleCaseTest.php
+
1
−
0
View file @
66dd6030
...
@@ -31,6 +31,7 @@ class TitleCaseTest extends TokenModifierTestCase {
...
@@ -31,6 +31,7 @@ class TitleCaseTest extends TokenModifierTestCase {
$data
[
'basic'
]
=
[
'hello world!'
,
'Hello World!'
];
$data
[
'basic'
]
=
[
'hello world!'
,
'Hello World!'
];
$data
[
'already capitalised'
]
=
[
'It\'s Working?'
,
'It\'s Working?'
];
$data
[
'already capitalised'
]
=
[
'It\'s Working?'
,
'It\'s Working?'
];
$data
[
'everything else capitalised'
]
=
[
'cAPITALISE eVERYTHING'
,
'CAPITALISE EVERYTHING'
];
$data
[
'everything else capitalised'
]
=
[
'cAPITALISE eVERYTHING'
,
'CAPITALISE EVERYTHING'
];
$data
[
'multibyte'
]
=
[
'čhecking multibyte ūnderway...'
,
'Čhecking Multibyte Ūnderway...'
];
return
$data
;
return
$data
;
}
}
...
...
This diff is collapsed.
Click to expand it.
tests/src/Unit/UpperCaseFirstTest.php
+
1
−
0
View file @
66dd6030
...
@@ -31,6 +31,7 @@ class UpperCaseFirstTest extends TokenModifierTestCase {
...
@@ -31,6 +31,7 @@ class UpperCaseFirstTest extends TokenModifierTestCase {
$data
[
'basic'
]
=
[
'hello world!'
,
'Hello world!'
];
$data
[
'basic'
]
=
[
'hello world!'
,
'Hello world!'
];
$data
[
'already capitalised'
]
=
[
'Working?'
,
'Working?'
];
$data
[
'already capitalised'
]
=
[
'Working?'
,
'Working?'
];
$data
[
'everything else capitalised'
]
=
[
'cAPITALISE'
,
'CAPITALISE'
];
$data
[
'everything else capitalised'
]
=
[
'cAPITALISE'
,
'CAPITALISE'
];
$data
[
'multibyte'
]
=
[
'čhecking multibyte ūnderway...'
,
'Čhecking multibyte ūnderway...'
];
return
$data
;
return
$data
;
}
}
...
...
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