This commit is contained in:
funkpower
2026-09-19 11:12:23 -04:00
parent 6d9b7415dd
commit acf8605d37
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -10,8 +10,8 @@
pub mod chunk;
pub mod doc;
mod float;
pub mod exit;
mod float;
pub mod hit;
pub mod ndjson;
+3 -1
View File
@@ -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:?}"),
+4 -1
View File
@@ -59,5 +59,8 @@ fn it_says_what_version_it_is() {
#[test]
fn the_same_schema_comes_out_byte_identical_every_time() {
assert_eq!(run(&["schema", "all"]).stdout, run(&["schema", "all"]).stdout);
assert_eq!(
run(&["schema", "all"]).stdout,
run(&["schema", "all"]).stdout
);
}