blob: 53b8d4e1bc11695d6ed19266b56dc48f1ea1b649 [file] [log] [blame]
use super::Error;
#[test]
fn test_unknown_log_is_not_fatal() {
assert_eq!(false, Error::UnknownLog.should_be_fatal());
}
#[test]
fn test_unknown_sct_version_is_not_fatal() {
assert_eq!(false, Error::UnsupportedSCTVersion.should_be_fatal());
}
#[test]
fn test_other_errors_are_fatal() {
assert_eq!(true, Error::MalformedSCT.should_be_fatal());
assert_eq!(true, Error::InvalidSignature.should_be_fatal());
assert_eq!(true, Error::TimestampInFuture.should_be_fatal());
}