]>
git.saurik.com Git - apt.git/blob - test/libapt/install_progress_test.cc
3 #include <apt-pkg/install-progress.h>
10 APT::Progress::PackageManagerFancy p
;
13 s
= p
.GetTextProgressStr(0.5, 60);
16 s
= p
.GetTextProgressStr(0.5, 4);
19 s
= p
.GetTextProgressStr(0.1, 12);
20 equals(s
, "[#.........]");
22 s
= p
.GetTextProgressStr(0.9, 12);
23 equals(s
, "[#########.]");
25 // deal with incorrect inputs gracefully (or should we die instead?)
26 s
= p
.GetTextProgressStr(-999, 12);