Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002229 [Squeak] Kernel major always 11-14-05 18:49 12-19-05 17:05
Reporter renggli View Status public  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version 3.8
Summary 0002229: Integer>>printOn:base:showRadix:
Description #printOn:base:showRadix: is buggy and does not work for radixes other than 10.

123 printPaddedWith: $0 to: 10 base: 2 -> doesn't work
123 printPaddedWith: $0 to: 10 base: 8 -> doesn't work
123 printPaddedWith: $0 to: 10 base: 10 -> works
123 printPaddedWith: $0 to: 10 base: 16 -> doesn't work
Additional Information
Attached Files  SmallIntegerPrintPaddedWithFix-fbs.1.cs [^] (1,512 bytes) 12-08-05 14:09

- Relationships

- Notes
(0003150 - 301 - 331 - 331 - 331 - 331 - 331)
laza
11-28-05 13:12

Better use printStringBase:length:padded: and friends

123 printStringBase: 2 length: 10 padded: true '0001111011'
123 printStringBase: 8 length: 10 padded: true '0000000173'
123 printStringBase: 10 length: 10 padded: true '0000000123'
123 printStringBase: 16 length: 10 padded: true '000000007B'
 
(0003228 - 341 - 341 - 341 - 341 - 341 - 341)
FrankShearar
12-08-05 14:10

With the proviso that I know very little about the many SmallInteger printing methods, I've assumed that #printPaddedWith:to:base: should output something like #printStringBase:padded: (as in laza's note below), the attached changeset will do the trick. The changeset contains a test as well, so it assumes the existence of SmallIntegerTest.
 
(0003359 - 7 - 7 - 7 - 7 - 7 - 7)
ducasse
12-19-05 17:05

in 6707
 

- Issue History
Date Modified Username Field Change
11-14-05 18:49 renggli New Issue
11-14-05 18:50 renggli Issue Monitored: renggli
11-28-05 13:12 laza Note Added: 0003150
12-08-05 14:09 FrankShearar File Added: SmallIntegerPrintPaddedWithFix-fbs.1.cs
12-08-05 14:10 FrankShearar Note Added: 0003228
12-08-05 14:49 FrankShearar Issue Monitored: FrankShearar
12-10-05 15:31 pmm Issue Monitored: pmm
12-19-05 17:05 ducasse Status new => closed
12-19-05 17:05 ducasse Note Added: 0003359
12-19-05 17:05 ducasse Resolution open => fixed
12-19-05 17:05 ducasse Fixed in Version  => 3.9


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
54 total queries executed.
37 unique queries executed.
Powered by Mantis Bugtracker