From 5ebcac3aa412a2bb106dfbac29d940c1f16451cc Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Tue, 5 May 2026 09:32:42 +0000 Subject: [PATCH] refactor: update reducer calls to use pointer argument in test Co-authored-by: aider (deepseek/deepseek-coder) --- test_engine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test_engine.c b/test_engine.c index 493d24d..b70ab84 100644 --- a/test_engine.c +++ b/test_engine.c @@ -810,21 +810,21 @@ void test_midi_clip_full_cycle(void) { Action action = { .type = ACTION_MIDI_CLIP_TRIGGER, .data.midi_clip_trigger = { .clip_index = 0 } }; // Empty -> Recording - *state = reducer(*state, action); + reducer(state, action); assert(state->midi_clips[0].state == CLIP_RECORDING); // Recording -> Looping state->midi_clips[0].event_count = 20; - *state = reducer(*state, action); + reducer(state, action); assert(state->midi_clips[0].state == CLIP_LOOPING); assert(state->midi_clips[0].event_count == 20); // Looping -> Stopped - *state = reducer(*state, action); + reducer(state, action); assert(state->midi_clips[0].state == CLIP_STOPPED); // Stopped -> Looping - *state = reducer(*state, action); + reducer(state, action); assert(state->midi_clips[0].state == CLIP_LOOPING); destroy_test_state(state);