mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-10-23 11:17:13 +00:00
format
This commit is contained in:
@@ -299,7 +299,9 @@ mod tests {
|
||||
fn a_record_from_a_future_version_is_refused() {
|
||||
let input = "{\"v\":2,\"id\":\"a\",\"channel\":\"fts\",\"rank\":1,\"score\":1.0}\n";
|
||||
match read::<Hit, _>(input.as_bytes()).next().unwrap() {
|
||||
Err(Error::Version { found, expected, .. }) => {
|
||||
Err(Error::Version {
|
||||
found, expected, ..
|
||||
}) => {
|
||||
assert_eq!((found, expected), (2, 1));
|
||||
}
|
||||
other => panic!("expected a version error, got {other:?}"),
|
||||
|
||||
Reference in New Issue
Block a user