File: bug_123466.t

package info (click to toggle)
libterm-progressbar-perl 2.23-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 224 kB
  • sloc: perl: 596; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env perl

use strict;
use warnings;

use Test::More tests => 2;
use Test::Warnings;
use Term::ProgressBar;

my $progress = Term::ProgressBar->new({ term => 0, count => 5 });
$progress->update(2);
is($progress->last_update, 2, 'progress has updated');