def result_matches
import qasim-bend-kit@0.1.0.2/usage/AES_NistTest.bend as AESNistTestimport 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))