mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 17:23:37 +08:00
test(native): share function body entry fixtures (#17329)
This commit is contained in:
@@ -84,30 +84,16 @@ describe("provider-neutral inclusive function body evidence", () => {
|
||||
).toBe(true);
|
||||
});
|
||||
it("checks entry membership using address space and inclusive endpoints", () => {
|
||||
expect(
|
||||
const acceptsEntry = (address: string, name: string) =>
|
||||
procedureIdentitySchema.safeParse({
|
||||
address: "0x1002",
|
||||
name: "last",
|
||||
address,
|
||||
name,
|
||||
classification: null,
|
||||
body: observed(),
|
||||
}).success,
|
||||
).toBe(true);
|
||||
expect(
|
||||
procedureIdentitySchema.safeParse({
|
||||
address: "0x1003",
|
||||
name: "gap",
|
||||
classification: null,
|
||||
body: observed(),
|
||||
}).success,
|
||||
).toBe(false);
|
||||
expect(
|
||||
procedureIdentitySchema.safeParse({
|
||||
address: "other:0x1000",
|
||||
name: "other",
|
||||
classification: null,
|
||||
body: observed(),
|
||||
}).success,
|
||||
).toBe(false);
|
||||
}).success;
|
||||
expect(acceptsEntry("0x1002", "last")).toBe(true);
|
||||
expect(acceptsEntry("0x1003", "gap")).toBe(false);
|
||||
expect(acceptsEntry("other:0x1000", "other")).toBe(false);
|
||||
});
|
||||
it.each([
|
||||
{ total_bytes: 18 },
|
||||
|
||||
Reference in New Issue
Block a user