diff --git a/src/index.rs b/src/index.rs index c880a2de6a..d0494b2f77 100644 --- a/src/index.rs +++ b/src/index.rs @@ -6700,4 +6700,16 @@ mod tests { // zero assert_eq!(Statistic::Schema.key(), 0); } + + #[test] + fn reminder_to_update_utxo_entry_type_name() { + // This test will break when the schema version is updated, and is a + // reminder to fix the type name in `impl redb::Value for &UtxoEntry`. + // + // The type name should be changed from `ord::index::utxo_entry::UtxoValue` + // to `ord::UtxoEntry`. I think it's probably best if we just name types + // `ord::NAME`, instead of including the full path, since the full path + // will change if we reorganize the code. + assert_eq!(SCHEMA_VERSION, 28); + } }