[r767]: / branches / FeatureBranches / unittest / Device / Plc Logic / Application / Test Suites / Functions / FB_Functions_TestSuite / Test_ReplaceIllegalCharsWithUnderscore / svnobj  Maximize  Restore  History

Download this file

10 lines (8 with data), 2.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
METHOD Test_ReplaceIllegalCharsWithUnderscore
VAR
    In : WSTRING := "ASDFGHJKLQWERTY/+#UIOPZXCVBNM<M>";
    Actual : WSTRING;
    Expected : WSTRING := "ASDFGHJKLQWERTY___UIOPZXCVBNM<M>";
CfUnit.TEST( 'Test_ReplaceIllegalCharsWithUnderscore' );
                           Message := 'Replacing Illegal Chars With an Underscore failed' );
                        
CfUnit.TEST_FINISHED();