From 5eb95e99749e5d1b316e4635daa58f23c66b8bea Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 24 Mar 2026 11:01:31 +0100 Subject: [PATCH] update test template in line with new assertion generators --- templates/Test_template.res | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/Test_template.res b/templates/Test_template.res index 293e7ee..2a6cb7e 100644 --- a/templates/Test_template.res +++ b/templates/Test_template.res @@ -8,16 +8,14 @@ panic("test not yet implemented") // UNCOMMENT CODE BELOW AND EDIT WITH YOUR TEST TEMPLATE // let template = (case: GetCases.case) => { // let expectedStr = JSON.stringify(case.expected) - // let input = Utils.getTestCaseInput(case, "phrase") -// let phrase = JSON.stringify(input) // EDIT THIS WITH YOUR ASSERTIONS (use genAssert... name to generate an assertion in the template) -// Assertions.genAssertEqual( +// AssertionGenerators( // ~message=case.description, // ~actual=`functionName(${input})`, // ~expected=expectedStr, // ) // } -// TestGenerator.generateTests(slug, template) +// TestGenerator.generateTests(slug, template, [Equal])