mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-10-22 18:57:14 +00:00
format
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
|
||||
pub mod chunk;
|
||||
pub mod doc;
|
||||
mod float;
|
||||
pub mod exit;
|
||||
mod float;
|
||||
pub mod hit;
|
||||
pub mod ndjson;
|
||||
|
||||
|
||||
@@ -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:?}"),
|
||||
|
||||
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user