Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: dummy commit to check CI #9

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/wasm-miniscript/test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ function removeChecksum(descriptor: string): string {
}

describe("Descriptor fixtures", function () {
fixtures.valid.forEach((fixture, i) => {
it("should parse fixture " + i, function () {
fixtures.valid.forEach((fixture, index) => {
it("should parse fixture " + index, function () {
const descriptor = descriptorFromString(fixture.descriptor, "string");
assert.doesNotThrow(() => descriptor.node());
let descriptorString = descriptor.toString();
if (fixture.checksumRequired === false) {
descriptorString = removeChecksum(descriptorString);
}
let expected = fixture.descriptor;
if (i === 56 || i === 57) {
if (index === 56 || index === 57) {
// for reasons I do not really understand, teh `a:and_n` gets converted into `a:and_b` for these
expected = expected.replace("and_n", "and_b");
}
Expand All @@ -38,9 +38,9 @@ describe("Descriptor fixtures", function () {
);

const nonDerivable = [33, 34, 35, 41, 42, 43];
if (nonDerivable.includes(i)) {
if (nonDerivable.includes(index)) {
// FIXME(BTC-1337): xprvs with hardened derivations are not supported yet
console.log("Skipping encoding test for fixture", fixture.descriptor, i);
console.log("Skipping encoding test for fixture", fixture.descriptor, index);
} else {
assert.doesNotThrow(() =>
descriptorFromString(fixture.descriptor, "derivable").atDerivationIndex(0).encode(),
Expand Down
Loading