OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions
Wrap_ut.cpp File Reference
#include <vector>
#include <string>
#include "Testing/Unit/UnitTest.h"
#include "Utility/String/Wrap.h"

Functions

 UNIT_TEST (StringWrap, BasicSentence)
 
 UNIT_TEST (StringWrap, EmptyString)
 
 UNIT_TEST (StringWrap, SingleShortWord)
 
 UNIT_TEST (StringWrap, SingleLongWord)
 
 UNIT_TEST (StringWrap, WordsLongerThanWidth)
 
 UNIT_TEST (StringWrap, ExactFitWidth)
 
 UNIT_TEST (StringWrap, LeadingTrailingSpaces)
 
 UNIT_TEST (StringWrap, WidthGreaterThanTextLength)
 
 UNIT_TEST (StringWrap, WidthEqualToTextLength)
 
 UNIT_TEST (StringWrap, WidthOne)
 
 UNIT_TEST (StringWrap, AllSpaces)
 
 UNIT_TEST (StringWrap, ForcedLineBreak)
 
 UNIT_TEST (StringWrap, ForcedLineBreakWrap)
 
 UNIT_TEST (StringWrap, ForcedLineBreakRepeated)
 
 UNIT_TEST (StringWrap, NewlineWithLongWordExceedingWidth)
 
 UNIT_TEST (StringWrap, NewlineAtEndOfText)
 
 UNIT_TEST (StringWrap, NewlineAtStartOfText)
 
 UNIT_TEST (StringWrap, MultipleNewlinesOnly)
 

Function Documentation

◆ UNIT_TEST() [1/18]

UNIT_TEST ( StringWrap  ,
AllSpaces   
)

◆ UNIT_TEST() [2/18]

UNIT_TEST ( StringWrap  ,
BasicSentence   
)

◆ UNIT_TEST() [3/18]

UNIT_TEST ( StringWrap  ,
EmptyString   
)

◆ UNIT_TEST() [4/18]

UNIT_TEST ( StringWrap  ,
ExactFitWidth   
)

◆ UNIT_TEST() [5/18]

UNIT_TEST ( StringWrap  ,
ForcedLineBreak   
)

◆ UNIT_TEST() [6/18]

UNIT_TEST ( StringWrap  ,
ForcedLineBreakRepeated   
)

◆ UNIT_TEST() [7/18]

UNIT_TEST ( StringWrap  ,
ForcedLineBreakWrap   
)

◆ UNIT_TEST() [8/18]

UNIT_TEST ( StringWrap  ,
LeadingTrailingSpaces   
)

◆ UNIT_TEST() [9/18]

UNIT_TEST ( StringWrap  ,
MultipleNewlinesOnly   
)

◆ UNIT_TEST() [10/18]

UNIT_TEST ( StringWrap  ,
NewlineAtEndOfText   
)

◆ UNIT_TEST() [11/18]

UNIT_TEST ( StringWrap  ,
NewlineAtStartOfText   
)

◆ UNIT_TEST() [12/18]

UNIT_TEST ( StringWrap  ,
NewlineWithLongWordExceedingWidth   
)

◆ UNIT_TEST() [13/18]

UNIT_TEST ( StringWrap  ,
SingleLongWord   
)

◆ UNIT_TEST() [14/18]

UNIT_TEST ( StringWrap  ,
SingleShortWord   
)

◆ UNIT_TEST() [15/18]

UNIT_TEST ( StringWrap  ,
WidthEqualToTextLength   
)

◆ UNIT_TEST() [16/18]

UNIT_TEST ( StringWrap  ,
WidthGreaterThanTextLength   
)

◆ UNIT_TEST() [17/18]

UNIT_TEST ( StringWrap  ,
WidthOne   
)

◆ UNIT_TEST() [18/18]

UNIT_TEST ( StringWrap  ,
WordsLongerThanWidth   
)