[darcs-devel] [patch2062] add tests for URL/path classification functions

Ganesh Sittampalam bugs at darcs.net
Mon Jul 20 21:32:08 UTC 2020


Ganesh Sittampalam <ganesh at earth.li> added the comment:

Afraid they don't pass - see attached.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch2062>
__________________________________
-------------- next part --------------
$ cabal v2-run test:darcs-test --enable-tests -- --shell=no -j 4 --network=no -t Darcs.Util.URL
Up to date
Using darcs executable in C:\msys64\home\ganesh\darcs\screened\dist-newstyle\build\x86_64-windows\ghc-8.6.5\darcs-2.15.2\noopt\build\darcs\darcs.exe
Locale encoding is CP850
:
  Darcs.Util.URL:
    http://host.domain/path/to/repo: [OK]
    https://host.domain/path/to/repo: [OK]
    http://host.domain/path:to/repo: [OK]
    https://host.domain/path:to/repo: [OK]
    http://host.domain/: [OK]
    https://host.domain/: [OK]
    C:\absolute\path\with\drive: [OK]
    c:/absolute/path/with/drive: [OK]
    X:path\with:drive:and:colons: [Failed]
isValidLocalPath
expected: False
 but got: True
    X:path/with:drive:and:colons: [Failed]
isValidLocalPath
expected: False
 but got: True
    A:not at ssh:url: [Failed]
isValidLocalPath
expected: False
 but got: True
    a:not at ssh:url: [Failed]
isValidLocalPath
expected: False
 but got: True
    /: [OK]
    .: [OK]
    ..: [OK]
    /absolute/path:with/colons: [Failed]
isValidLocalPath
expected: False
 but got: True
    /absolute/path:with/colons: [Failed]
isValidLocalPath
expected: False
 but got: True
    relative/path:with/colons: [Failed]
isValidLocalPath
expected: False
 but got: True
    ./relative/path:with/colons: [Failed]
isValidLocalPath
expected: False
 but got: True
    user at host:/path/to/repo: [OK]
    host:/path/to/repo: [OK]
    user at host:/path:with/colons/: [OK]
    host:/path:with/colons/: [OK]

         Test Cases   Total
 Passed  15           15
 Failed  8            8
 Total   23           23


More information about the darcs-devel mailing list