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

Add enum for Inspect 0x09 payload #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add enum for Inspect 0x09 payload #18

wants to merge 2 commits into from

Conversation

tolauwae
Copy link
Member

@tolauwae tolauwae commented Aug 26, 2024

Allows testing the reversal of primitives. Example program:

const reverse = framework.suite('Test Reverse interface');
reverse.testee('emulator[:8530]', new EmulatorSpecification(8530));

reverse.test({
    title: 'Test snapshot',
    program: 'test/blink.wast',
    steps: [{
        title: 'Test IO snapshot',
        instruction: {kind: Kind.Request, value: Message.inspect([Inspect.io])},
        expected: [{
            'io': {
                kind: 'comparison', value: (state: State) => state.io?.length === 0
            }
        }],
    },
        new Invoker('read', [WASM.i32(15)], WASM.i32(0)),
        new Invoker('write', [WASM.i32(15), WASM.i32(1)], undefined),
        new Invoker('read', [WASM.i32(15)], WASM.i32(1))
    ]
})

@tolauwae tolauwae added the feature Minor new feature or request label Aug 26, 2024
@tolauwae tolauwae self-assigned this Aug 27, 2024
@tolauwae tolauwae marked this pull request as ready for review September 27, 2024 15:07
@tolauwae tolauwae force-pushed the main branch 21 times, most recently from 8184c10 to 1d07d67 Compare December 3, 2024 17:16
@tolauwae tolauwae added feature Minor new feature or request and removed feature Minor new feature or request labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Minor new feature or request
Projects
Status: Under Review
Development

Successfully merging this pull request may close these issues.

1 participant