journal/tool/tests.jq

14 lines
342 B
Plaintext
Raw Normal View History

2024-11-07 09:10:34 +00:00
import "./testdata/tests_export" as $exportData;
2024-11-07 08:58:38 +00:00
include "journalUtils";
include "testLib";
def testsMain:
expectPassed(runTest(
"invalid input to experienceByTitle";
(
2024-11-07 09:10:34 +00:00
{} | experienceByTitle("Test")
2024-11-07 08:58:38 +00:00
);
2024-11-07 09:10:34 +00:00
. == "experienceByTitle takes a array of experiences as input";
true
)) | "Tests Passed\n" | halt_error(0);