content/flux/v0/stdlib/internal/testing/assertmatches.md
testing.assertMatches() tests whether a string matches a given regex.
(got: string, want: regexp) => stream[{v: string, _diff: string}]
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) Value to test.
({{< req >}}) Regex to test against.
import "internal/testing"
testing.assertMatches(got: "123", want: /12/)