Skip to content

Commit

Permalink
Test architecture method on real bins
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara committed Jan 20, 2025
1 parent b33683c commit a7a7031
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions macho/universal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ for (const { kind, arch, file, archs } of fixtures) {
assertEquals(offset, 0);
assertEquals(length, blob.size);
}

// deno-lint-ignore no-await-in-loop
const ma = await uni.architecture(a);
assertEquals(ma.offset(), offset);

// deno-lint-ignore no-await-in-loop
const mo = await uni.architecture(offset);
assertEquals(mo.offset(), offset);
}
assertThrows(
() => uni.archOffset(new Architecture()),
Expand Down

0 comments on commit a7a7031

Please sign in to comment.