12 lines
365 B
TypeScript
12 lines
365 B
TypeScript
import { Message } from "./Message";
|
|
export interface NegativeTestVector {
|
|
expectation: "failure";
|
|
encoded: Uint8Array;
|
|
}
|
|
export interface PositiveTestVector {
|
|
expectation: "success";
|
|
encoded: Uint8Array;
|
|
decoded: Message;
|
|
}
|
|
export type TestVector = NegativeTestVector | PositiveTestVector;
|
|
export type TestVectors = Record<string, TestVector>;
|