use apache_avro::{AvroSchemaComponent, Schema};
use std::collections::HashSet;
#[test]
fn avro_rs_394_avro_schema_component_without_derive_feature() {
let schema = i32::get_schema_in_ctxt(&mut HashSet::default(), None);
assert!(matches!(schema, Schema::Int));
}
#[test]
#[should_panic(expected = "Option<T> must produce a valid (non-nested) union")]
fn avro_rs_394_avro_schema_component_nested_options() {
type VeryOptional = Option<Option<i32>>;
let _schema = VeryOptional::get_schema_in_ctxt(&mut HashSet::default(), None);
}