From 453dee4881a9c764b09d33f3a827879f2cd3669d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 7 May 2020 21:05:45 +0000 Subject: msg_iter: pass $idx as a scalar, not array This doesn't make any difference for most multipart messages (or any single part messages). However, this starts having space savings when parts start nesting. It also slightly simplifies callers. --- t/msg_iter.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/msg_iter.t') diff --git a/t/msg_iter.t b/t/msg_iter.t index 5c57e043..e8115e25 100644 --- a/t/msg_iter.t +++ b/t/msg_iter.t @@ -28,7 +28,7 @@ use_ok('PublicInbox::MsgIter'); $s =~ s/\s+//s; push @parts, [ $s, $level, @ex ]; }); - is_deeply(\@parts, [ [qw(a 2 1 1)], [qw(b 2 1 2)], [qw(sig 1 2)] ], + is_deeply(\@parts, [ [qw(a 2 1.1)], [qw(b 2 1.2)], [qw(sig 1 2)] ], 'nested part shows up properly'); } -- cgit v1.2.3-24-ge0c7