diff options
Diffstat (limited to 'src/tests/heap.cpp')
| -rw-r--r-- | src/tests/heap.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tests/heap.cpp b/src/tests/heap.cpp index 14da55a..520a57f 100644 --- a/src/tests/heap.cpp +++ b/src/tests/heap.cpp | |||
| @@ -41,8 +41,7 @@ typedef struct num | |||
| 41 | void printHeap( Bu::Heap<Bu::String> &h, int j ) | 41 | void printHeap( Bu::Heap<Bu::String> &h, int j ) |
| 42 | { | 42 | { |
| 43 | // return; | 43 | // return; |
| 44 | Bu::String sFName; | 44 | Bu::String sFName = Bu::String("graph-step-%1.dot").arg( j, Bu::Fmt().width(2).fill('0') ); |
| 45 | sFName.format("graph-step-%02d.dot", j ); | ||
| 46 | Bu::File fOut( sFName, Bu::File::WriteNew ); | 45 | Bu::File fOut( sFName, Bu::File::WriteNew ); |
| 47 | Bu::Formatter f( fOut ); | 46 | Bu::Formatter f( fOut ); |
| 48 | f << "Graph step: " << j << ", total size: " << h.getSize() << f.nl; | 47 | f << "Graph step: " << j << ", total size: " << h.getSize() << f.nl; |
