mirror of
https://github.com/morluto/rea.git
synced 2026-11-09 00:07:18 +00:00
test: prune duplicate managed comparison limitation
This commit is contained in:
1 parent
75ff321e9e
commit
ff542ada47
1 file changed
+8
-7
@@ -1460,8 +1460,10 @@ describe("managed exported types", () => {
|
||||
const parsed = managedMemberInspectionSchema.parse(legacy);
|
||||
|
||||
expect(parsed.exported_types).toBeNull();
|
||||
expect(comparisonLimitations(parsed, parsed)).toContain(
|
||||
"At least one managed member observation did not examine ExportedType rows; its exported and forwarded types are unknown.",
|
||||
expect(comparisonLimitations(parsed, parsed)).toContainEqual(
|
||||
expect.stringMatching(
|
||||
/did not examine ExportedType.*exported and forwarded types are unknown/iu,
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
@@ -1548,8 +1550,10 @@ describe("managed user strings", () => {
|
||||
expect(body?.normalized_il_sha256).toBe(
|
||||
inspect({ ilBody }).methods[0]?.body.normalized_il_sha256,
|
||||
);
|
||||
expect(comparisonLimitations(result, result)).toContain(
|
||||
"ldstr literals are not compared; normalized CIL keeps #US tokens rather than decoded text, so an unchanged method does not establish unchanged string literals.",
|
||||
expect(comparisonLimitations(result, result)).toContainEqual(
|
||||
expect.stringMatching(
|
||||
/ldstr literals are not compared.*#US tokens.*unchanged method.*does not establish unchanged string literals/iu,
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
@@ -1658,9 +1662,6 @@ describe("managed user strings", () => {
|
||||
const { user_strings: _omitted, ...legacy } = inspect({});
|
||||
const parsed = managedMemberInspectionSchema.parse(legacy);
|
||||
expect(parsed.user_strings).toBeNull();
|
||||
expect(comparisonLimitations(parsed, inspect({}))).toContain(
|
||||
"ldstr literals are not compared; normalized CIL keeps #US tokens rather than decoded text, so an unchanged method does not establish unchanged string literals.",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user