mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 17:30:32 -10:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e5b914133 | ||
|
|
2697dbf923 |
No files matched your search
@@ -187,8 +187,11 @@ export const dexStaticValueSchema = z.discriminatedUnion("type", [
|
|||||||
type: z.literal("long"),
|
type: z.literal("long"),
|
||||||
value: z
|
value: z
|
||||||
.string()
|
.string()
|
||||||
.regex(/^(?:0|-?[1-9]\d*)$/u)
|
.regex(/^(?:0|-?[1-9]\d*)$/u, { abort: true })
|
||||||
.refine((text) => BigInt(text) >= LONG_MIN && BigInt(text) <= LONG_MAX),
|
.refine((text) => {
|
||||||
|
const value = BigInt(text);
|
||||||
|
return value >= LONG_MIN && value <= LONG_MAX;
|
||||||
|
}),
|
||||||
}),
|
}),
|
||||||
floating("float", Math.fround),
|
floating("float", Math.fround),
|
||||||
floating("double", (value) => value),
|
floating("double", (value) => value),
|
||||||
|
|||||||
@@ -536,6 +536,7 @@ it("reports DEX static values of static final fields without a static initialize
|
|||||||
|
|
||||||
it.each([
|
it.each([
|
||||||
{ type: "long", value: -9223372036854775808 },
|
{ type: "long", value: -9223372036854775808 },
|
||||||
|
{ type: "long", value: "1.5" },
|
||||||
{ type: "int", value: "1024" },
|
{ type: "int", value: "1024" },
|
||||||
{ type: "double", value: 0.5 },
|
{ type: "double", value: 0.5 },
|
||||||
{ type: "enum", value: "fixture.Mode.ON" },
|
{ type: "enum", value: "fixture.Mode.ON" },
|
||||||
@@ -553,7 +554,13 @@ it.each([
|
|||||||
dex_static_value,
|
dex_static_value,
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
).rejects.toThrow("JADX class summary failed or was malformed");
|
).rejects.toMatchObject({
|
||||||
|
_tag: "AnalysisOutputError",
|
||||||
|
operation: "inspect_android_class",
|
||||||
|
message: expect.stringContaining(
|
||||||
|
"JADX class summary failed or was malformed",
|
||||||
|
),
|
||||||
|
});
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user