From 6beff55a2b7e5cc9e2bfefdba720d7aab293cc07 Mon Sep 17 00:00:00 2001 From: Dominic Barnes Date: Tue, 1 Oct 2024 23:17:41 -0700 Subject: [PATCH] feat(suite): add TestCase.Assert helper --- suite.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/suite.go b/suite.go index ab8f4e0..96578e9 100644 --- a/suite.go +++ b/suite.go @@ -65,6 +65,11 @@ func (c TestCase) Load(t T, values ...any) { } } +// Assert is a helper for checking and/or saving testdata for this test case. +func (c TestCase) Assert(t T, values ...any) { + Assert(t, c.Dir, values...) +} + // TestSuite defines a collection of tests backed by directories/files on disk. type TestSuite struct { // Dir is the location of your test suite.