Sun May 31 07:45:47 2026 isbn10_code_test(): numpy version: 1.26.4 python version: 3.10.12 Test isbn10_code(). ch_is_digit_test(): ch_is_digit() is TRUE if a character is a decimal digit. 0 "0" True 1 "1" True 2 "2" True 3 "3" True 4 "4" True 5 "5" True 6 "6" True 7 "7" True 8 "8" True 9 "9" True 10 "X" False 11 "?" False 12 " " False ch_is_isbn_digit_test(): ch_is_isbn_digit() is TRUE if a character is an ISBN digit. "0" True "1" True "2" True "3" True "4" True "5" True "6" True "7" True "8" True "9" True "X" True "x" True "Y" False "*" False "?" False " " False ch_to_digit_test(): ch_to_digit() converts a character to a decimal digit 0 "0" 0 1 "1" 1 2 "2" 2 3 "3" 3 4 "4" 4 5 "5" 5 6 "6" 6 7 "7" 7 8 "8" 8 9 "9" 9 10 "X" -1 11 "?" -1 12 " " -1 i4_to_isbn_digit_test(): i4_to_isbn_digit() converts digits 0 to 10 to an ISBN digit. 0 "0" 1 "1" 2 "2" 3 "3" 4 "4" 5 "5" 6 "6" 7 "7" 8 "8" 9 "9" 10 "X" isbn_check_digit_calculate_test(): isbn_check_digit_calculate() calculates the 10-th digit (the check digit) of a 10-digit ISBN. Check digit of "0-306-40615-2" is "2", expecting "2" Check digit of "0 8493 9640" is "9", expecting "9" Check digit of "158488059" is "7", expecting "7" Check digit of "246897531" is "6", expecting "6" Check digit of "135798642" is "4", expecting "4" isbn_is_valid_test(): isbn_is_valid() reports whether a ISBN is valid. Validity of "0-306-40615-2" is True, expecting True Validity of "0-326-40615-2" is False, expecting False Validity of "0 8493 9640 9" is True, expecting True Validity of "0 8493 9640 3" is False, expecting False Validity of "0-3870-9654-X" is True, expecting True Validity of "0-201-38597-x" is True, expecting True isbn_digit_to_i4_test(): isbn_digit_to_i4() converts an ISBN digit to an I4 "0" 0 "1" 1 "2" 2 "3" 3 "4" 4 "5" 5 "6" 6 "7" 7 "8" 8 "9" 9 "X" 10 "x" 10 "Y" -1 "*" -1 "?" -1 " " -1 s_to_digits_test(): s_to_digits() converts string to digit vector Test string: "34E94-70.6" Extracted 5 digits: 0 3 1 4 2 9 3 4 4 7 Test string: "34E94-70.6" Extracted 7 digits: 0 3 1 4 2 9 3 4 4 7 5 0 6 6 s_to_isbn_digits_test(): s_to_isbn_digits() converts string to ISBN digit vector Test string: "34E9X-70.6" Extracted 5 digits: 0 3 1 4 2 9 3 10 4 7 Test string: "34E9X-70.6" Extracted 7 digits: 0 3 1 4 2 9 3 10 4 7 5 0 6 6 isbn10_code_test(): Normal end of execution. Sun May 31 07:45:47 2026