28 lines
615 B
Plaintext
28 lines
615 B
Plaintext
import "./testdata/tests_export" as $exportDataArray;
|
|
include "journalUtils";
|
|
include "testLib";
|
|
import "typeLib" as typeLib;
|
|
|
|
def journalUtilsTests:
|
|
expectPassed(runTest(
|
|
"invalid input to experienceByTitle";
|
|
(
|
|
null | experienceByTitle("Test")
|
|
);
|
|
. == "experienceByTitle takes a array of experiences as input";
|
|
true
|
|
)) |
|
|
expectPassed(runTest(
|
|
"experience not found";
|
|
(
|
|
$exportDataArray[0].experiences | experienceByTitle("Test")
|
|
);
|
|
. == null;
|
|
false
|
|
));
|
|
|
|
def testsMain:
|
|
journalUtilsTests |
|
|
typeLib::typeLibTests |
|
|
"Tests Passed\n" | halt_error(0);
|