tests for stripping trailing terminator by path-element->bytes

svn: r4665
This commit is contained in:
Matthew Flatt 2006-10-20 23:18:16 +00:00
parent cc51634826
commit c4cc339f69

View File

@ -678,6 +678,8 @@
(test #t relative-path? "./~")
(test (bytes->path #"./~") bytes->path-element #"~")
(test #"~" path-element->bytes (bytes->path #"./~"))
(test #"~" path-element->bytes (bytes->path #"./~/"))
(test #"a" path-element->bytes (bytes->path #"a////////////"))
(test (bytes->path #"./~me") bytes->path-element #"~me")
(test #"~me" path-element->bytes (bytes->path #"./~me"))
(err/rt-test (path-element->bytes (bytes->path #"x/y")))