k&r; exercise 1.5 - use `const` for constants
k&r; exercise 1.5 - improve tests