14 lines
261 B
Elixir
14 lines
261 B
Elixir
defmodule RDF.TestData do
|
|
@dir Path.join(File.cwd!(), "test/data/")
|
|
def dir, do: @dir
|
|
|
|
def path(name) do
|
|
path = Path.join(@dir, name)
|
|
|
|
if File.exists?(path) do
|
|
path
|
|
else
|
|
raise "test data file '#{path}' not found"
|
|
end
|
|
end
|
|
end
|