wip restructuring

This commit is contained in:
2026-06-05 13:36:01 -07:00
parent f04b7311f5
commit f79403b97f
55 changed files with 29 additions and 85 deletions
+27
View File
@@ -0,0 +1,27 @@
% testing utilities
-module(ts_utils).
-export([
ct_dir/0,
ct_file/1, ct_file_abspath/1
]).
-spec ct_dir() -> string().
% directory containing the tests for the tokenizer
ct_dir() ->
zx_daemon:get_home() ++ "/ct".
ct_file_abspath(Name) ->
ct_file(Name).
-spec ct_file(Name) -> AbsPath when
Name :: string(),
AbsPath :: string().
% @doc
% ct_file("foo.aes") -> "/path/to/ct/foo.aes"
ct_file(Name) ->
ct_dir() ++ "/" ++ Name.