use ec4rs::property::Charset;
use super::super::CharsetHandler;
use crate::test_utils::{TestFileHelper, charset::get_charset_from_file_name};
#[test]
fn test_get_charset_from_file_success() {
for test_entry in TestFileHelper::new::<Charset>().get_test_file_paths() {
let result = CharsetHandler::get_charset_from_file(&test_entry)
.expect("Read for get charset needs to be possible")
.expect("Charset was not determinable");
let expected_charset = get_charset_from_file_name(&test_entry);
assert_eq!(result, expected_charset);
}
}