ProcessPath.dat 994 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. The format of this data file is as follows:
  2. Each data set begins with a line starting with a colon (:).
  3. The three lines following this are the parameters to the
  4. ProcessPath function: Base Path, Path and Delimiter. The
  5. fourth line is the expected result.
  6. The five lines that make up a single test must be together.
  7. Any lines preceding the first test (i.e., these ones) and
  8. any lines after the fifth line of a test and the start of the
  9. next test can be utilised for comments and will be ignored.
  10. Additionally, text after the colon will also be ignored.
  11. : A wacky start. ;-)
  12. ABasePath
  13. APath
  14. ADelimiter
  15. ABasePathADelimiterAPath
  16. : No base path
  17. Path
  18. /
  19. Path
  20. : Base but no path
  21. BasePath
  22. /
  23. BasePath/
  24. : Both BasePath and Path
  25. BasePath
  26. Path
  27. /
  28. BasePath/Path
  29. : Multiple delimiters in base path, no path
  30. Dir1/Dir2/Dir3/Dir4
  31. /
  32. Dir1/Dir2/Dir3/Dir4/
  33. : Multiple delimiters in base path with path
  34. Dir1/Dir2/Dir3/Dir4
  35. Path
  36. /
  37. Dir1/Dir2/Dir3/Dir4/Path