diff options
author | Derf Null <derf@finalrewind.org> | 2023-06-28 19:23:19 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-06-28 19:23:19 +0200 |
commit | 6e25ffc8e9b1574f7c7499cdca00debf4efa830c (patch) | |
tree | 76fd2b1ce6649990cd0cc47ccd55b605108b0cd2 /t | |
parent | bb43a2e8e3d0729ed3ddde7897c5f64ad77393b7 (diff) |
visibility test: add a small description of current test
Diffstat (limited to 't')
-rw-r--r-- | t/22-visibility.t | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/t/22-visibility.t b/t/22-visibility.t index 463d221..f675148 100644 --- a/t/22-visibility.t +++ b/t/22-visibility.t @@ -98,10 +98,13 @@ sub test_visibility { . $status->{timestamp}->epoch % 337 . q{-} . $status->{sched_departure}->epoch; - is( $status->{visibility}, $opt{visibility} ); - is( $status->{visibility_str}, $opt{visibility_str} ); - is( $status->{effective_visibility}, $opt{effective_visibility} ); - is( $status->{effective_visibility_str}, $opt{effective_visibility_str} ); + my $desc = "vis=$opt{effective_visibility_str} (from $opt{visibility_str})"; + + is( $status->{visibility}, $opt{visibility}, $desc ); + is( $status->{visibility_str}, $opt{visibility_str}, $desc ); + is( $status->{effective_visibility}, $opt{effective_visibility}, $desc ); + is( $status->{effective_visibility_str}, + $opt{effective_visibility_str}, $desc ); if ( $opt{public} ) { $t->get_ok('/status/test1')->status_is(200)->content_like(qr{DPN 667}); |