From 0a539cd3b4dca8b99883fbd6beb6b48e1643dfcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20L=C3=A4ufer?= Date: Thu, 9 Nov 2023 14:32:39 -0500 Subject: [PATCH] diff: multi bit signals --- tests/diff_tests.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/diff_tests.rs b/tests/diff_tests.rs index 54b32bd..51d5f3b 100644 --- a/tests/diff_tests.rs +++ b/tests/diff_tests.rs @@ -149,7 +149,12 @@ fn diff_signals(ref_reader: &mut vcd::Parser, our: &mut Waveform) let our_value_str = our_value.to_bit_string().unwrap(); assert_eq!(our_value_str, value.to_string()); } - vcd::Command::ChangeVector(_, _) => {} + vcd::Command::ChangeVector(id, value) => { + let signal_ref = vcd_lib_id_to_signal_ref(id); + let our_value = our.get_signal_value_at(signal_ref, time_table_idx as u32); + let our_value_str = our_value.to_bit_string().unwrap(); + assert_eq!(our_value_str, value.to_string()); + } vcd::Command::ChangeReal(_, _) => { todo!("compare real") }