Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363361

Summary: StringLib.getTokenCount returns 0 rather than token count
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description broy2 CLA 2011-11-09 12:32:58 EST
Use EUNIT to run:

library getTokenCount
    commandLine string = "CALL PROG1 arg1,arg2";
    delimiters string = " ,"; // space and comma delimiters
    myInt int;
    function getTokenCountTest(){@Test}
        myInt = StringLib.getTokenCount(commandLine, delimiters);
        LogResult.assertDecimalEqual("getTokenCount", 4, myInt);
    end
end

Returns 0 rather than 4.
Comment 1 broy2 CLA 2011-11-21 17:12:03 EST
Fixed in 20111121 build.
Comment 2 broy2 CLA 2011-11-21 17:12:16 EST
Verified.