Skip to content

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
@tolauwae tolauwae force-pushed the main branch 2 times, most recently from f9658a7 to 2715cd1 Compare November 13, 2025 22:10
@tolauwae tolauwae force-pushed the main branch 3 times, most recently from a1b00a8 to 7e11b3b Compare December 16, 2025 13:13
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.

2 participants