Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
9531db83
Commit
9531db83
authored
14 years ago
by
Adam Wardyński
Browse files
Options
Downloads
Patches
Plain Diff
add some empty set tests for ToUpper and ToLower
parent
ec4caf8d
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/strsetfunctions.cpp
+20
-0
20 additions, 0 deletions
tests/strsetfunctions.cpp
with
20 additions
and
0 deletions
tests/strsetfunctions.cpp
+
20
−
0
View file @
9531db83
...
...
@@ -101,6 +101,26 @@ BOOST_FIXTURE_TEST_CASE(upper_locale, StrSetFix)
BOOST_CHECK
(
upperset
.
equals
(
*
to_upper
.
apply
(
sc
)));
}
BOOST_FIXTURE_TEST_CASE
(
lower_empty
,
StrSetFix
)
{
StrSet
emptyset
;
ToLower
to_lower
(
boost
::
shared_ptr
<
Function
<
StrSet
>
>
(
new
Constant
<
StrSet
>
(
emptyset
)));
BOOST_CHECK
(
emptyset
.
equals
(
*
to_lower
.
apply
(
sc
)));
}
BOOST_FIXTURE_TEST_CASE
(
upper_empty
,
StrSetFix
)
{
StrSet
emptyset
;
ToUpper
to_upper
(
boost
::
shared_ptr
<
Function
<
StrSet
>
>
(
new
Constant
<
StrSet
>
(
emptyset
)));
BOOST_CHECK
(
emptyset
.
equals
(
*
to_upper
.
apply
(
sc
)));
}
//------ to_string test cases -------
BOOST_FIXTURE_TEST_CASE
(
lower_to_string
,
StrSetFix
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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