def result_matches

qasim-bend-kit@0.1.0.2 · usage/AES_NistTest.bend:4

import qasim-bend-kit@0.1.0.2/usage/AES_NistTest.bend as AESNistTest
import Base
import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES

4def result_matches(result: Result<&2, &2, AES.Error, AES.Envelope>,
5    expected: AES.Envelope) -> Bool:
6    match result:
7        case Fail{error}: False{}
8        case Done{envelope}: String.eq(AES.encode(envelope), AES.encode(expected))

Uses (6)

Used by (1)