Thursday, January 26, 2006

First Project - Second Version

I've added some code to check out-of-range decimal ESNs, as well as changing my home icon to only use two colors, plus black. Here is a good set of decimal ESNs to exercise every branch of the Decimal to Hex code:
  
123456789012
a1234567890
123a1234567
25612345678
99912345678
25516777216
25599999999
25500000254
25516777215
1
2
3
4
The Hexadecimal results are:

!error!
!error!
!error!
!error!
!error!
!error!
!error!
FF0000FE
FFFFFFFF
00000001
00000002
00000003
00000004
And here is a good set of hexadecimal ESNs to exercise every branch of the Hex to Decimal code:
 
123456789
za123456
12za1234
01000001
FF0000FE
FFFFFFFF
1
2
3
4
The Decimal results are:

!error!
!error!
!error!
00100000001
25500000254
25516777215
00000000001
00000000002
00000000003
00000000004

0 Comments:

Post a Comment

<< Home