Skip to content

Relative pathnames should be relative to the system #49

@Yehouda

Description

@Yehouda

(iter (for (x y) in-csv #P"numbers.csv")

The path above is relative to the current path, so it fails if the current path is not the tests directory.
Instead it should be using asdf:system-relative-pathname like +test-csv-quoted-path+ is defined earlier in the file.
Useful to define:

(defun cl-csv-test-relative (filename)
       (merge-pathnames filename (asdf:system-relative-pathname  :cl-csv "tests/")))

and use it in all places.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions