test suite test character handler
import idealmachinecharactersunicode handler
test case predicate test()
the character handler : unicode handlerinstance
assert the character handleris letter('x')
assert !the character handleris letter('6')
assert the character handleris letter or digit('x')
assert the character handleris letter or digit('8')
assert !the character handleris letter or digit(' ')
assert the character handleris whitespace(' ')
assert !the character handleris whitespace('x')
assert !the character handleris whitespace('4')
assert the character handleris upper case('X')
assert !the character handleris upper case('x')
assert !the character handleris upper case('5')
assert the character handleris digit('0')
assert the character handleris digit('5')
assert !the character handleris digit('x')
assert !the character handleris digit('?')
test case digit test()
assert radixMINIMUM RADIX == 2
assert radixDEFAULT RADIX == 10
assert radixMAXIMUM RADIX == 36
the character handler : unicode handlerinstance
assert the character handlerfrom digit('0', radixDEFAULT RADIX) == 0
assert the character handlerfrom digit('5', radixDEFAULT RADIX) == 5
assert the character handlerfrom digit('F', 16) == 15
assert the character handlerfrom digit('X', 16) is null
test case conversion test()
the character handler : unicode handlerinstance
assert the character handlerto lower case('X') == 'x'
assert the character handlerto lower case('x') == 'x'
assert the character handlerto lower case('5') == '5'