test suite test character handler
        
          
      
    
           import ideal • machine • characters • unicode handler
          
          
           test case predicate test()
            
              
              
          
          
               assert the character handler • is letter('x')
              
              
               assert !the character handler • is letter('6')
              
              
               assert the character handler • is letter or digit('x')
              
              
               assert the character handler • is letter or digit('8')
              
              
               assert !the character handler • is letter or digit(' ')
              
              
               assert the character handler • is whitespace(' ')
              
              
               assert !the character handler • is whitespace('x')
              
              
               assert !the character handler • is whitespace('4')
              
              
               assert the character handler • is upper case('X')
              
              
               assert !the character handler • is upper case('x')
              
              
               assert !the character handler • is upper case('5')
              
              
               assert the character handler • is digit('0')
              
              
               assert the character handler • is digit('5')
              
              
               assert !the character handler • is digit('x')
              
              
               assert !the character handler • is digit('?')
              
            
           test case digit test()
            
              
          
          
               assert radix • MINIMUM RADIX == 2
              
              
               assert radix • DEFAULT RADIX == 10
              
              
               assert radix • MAXIMUM RADIX == 36
              
              
              
              
              
               assert the character handler • from digit('F', 16) == 15
              
              
            
           test case conversion test()
            
              
              
          
        
               assert the character handler • to lower case('X') == 'x'
              
              
               assert the character handler • to lower case('x') == 'x'
              
              
               assert the character handler • to lower case('5') == '5'