Skip to content

Commit

Permalink
clean up fuzzy-test
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 23, 2024
1 parent 3aa5005 commit 0458605
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions crates/store/re_types/tests/types/fuzzy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ fn roundtrip() {

{
let arch = AffixFuzzer1::new(
fuzzy1.clone(), //
fuzzy1.clone(),
fuzzy2.clone(),
fuzzy3.clone(),
fuzzy4.clone(),
Expand All @@ -237,15 +237,15 @@ fn roundtrip() {
);

#[rustfmt::skip]
let expected_extensions: HashMap<_, _> = [
("fuzz1001", vec!["rerun.testing.components.AffixFuzzer1", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1002", vec!["rerun.testing.components.AffixFuzzer2", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1003", vec!["rerun.testing.components.AffixFuzzer3", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1004", vec!["rerun.testing.components.AffixFuzzer4", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1005", vec!["rerun.testing.components.AffixFuzzer5", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1006", vec!["rerun.testing.components.AffixFuzzer6", "rerun.testing.datatypes.AffixFuzzer1"]),
]
.into();
let expected_extensions: HashMap<_, _> = [
("fuzz1001", vec!["rerun.testing.components.AffixFuzzer1", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1002", vec!["rerun.testing.components.AffixFuzzer2", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1003", vec!["rerun.testing.components.AffixFuzzer3", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1004", vec!["rerun.testing.components.AffixFuzzer4", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1005", vec!["rerun.testing.components.AffixFuzzer5", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1006", vec!["rerun.testing.components.AffixFuzzer6", "rerun.testing.datatypes.AffixFuzzer1"]),
]
.into();

eprintln!("arch = {arch:#?}");
let serialized = arch.to_arrow2().unwrap();
Expand All @@ -254,14 +254,14 @@ fn roundtrip() {
// eprintln!("field = {field:#?}");
// eprintln!("array = {array:#?}");
if field.name == "rerun.testing.components.AffixFuzzer21" {
// TODO(jleibs): Fields that contain Float16 apparently don't supported fmt
// TODO(#3741): Fields that contain Float16 apparently don't supported fmt
// https://github.com/rerun-io/re_arrow2/blob/33a32000001df800e4840d92c33b03e7007311e1/src/array/primitive/fmt.rs#L39
eprintln!("{} = Can't be printed (float16 not supported)", field.name);
} else {
eprintln!("{} = {array:#?}", field.name);
}

// TODO(cmc): Re-enable extensions and these assertions once `arrow2-convert`
// TODO(#3741): Re-enable extensions and these assertions once `arrow2-convert`
// has been fully replaced.
if false {
util::assert_extensions(
Expand Down Expand Up @@ -299,15 +299,15 @@ fn roundtrip() {
);

#[rustfmt::skip]
let expected_extensions: HashMap<_, _> = [
("fuzz1101", vec!["rerun.testing.components.AffixFuzzer1", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1102", vec!["rerun.testing.components.AffixFuzzer2", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1103", vec!["rerun.testing.components.AffixFuzzer3", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1104", vec!["rerun.testing.components.AffixFuzzer4", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1105", vec!["rerun.testing.components.AffixFuzzer5", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1106", vec!["rerun.testing.components.AffixFuzzer6", "rerun.testing.datatypes.AffixFuzzer1"]),
]
.into();
let expected_extensions: HashMap<_, _> = [
("fuzz1101", vec!["rerun.testing.components.AffixFuzzer1", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1102", vec!["rerun.testing.components.AffixFuzzer2", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1103", vec!["rerun.testing.components.AffixFuzzer3", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1104", vec!["rerun.testing.components.AffixFuzzer4", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1105", vec!["rerun.testing.components.AffixFuzzer5", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz1106", vec!["rerun.testing.components.AffixFuzzer6", "rerun.testing.datatypes.AffixFuzzer1"]),
]
.into();

eprintln!("arch = {arch:#?}");
let serialized = arch.to_arrow2().unwrap();
Expand All @@ -316,14 +316,14 @@ fn roundtrip() {
// eprintln!("field = {field:#?}");
// eprintln!("array = {array:#?}");
if field.name == "rerun.testing.components.AffixFuzzer21" {
// TODO(jleibs): Fields that contain Float16 apparently don't supported fmt
// TODO(#3741): Fields that contain Float16 apparently don't supported fmt
// https://github.com/rerun-io/re_arrow2/blob/33a32000001df800e4840d92c33b03e7007311e1/src/array/primitive/fmt.rs#L39
eprintln!("{} = Can't be printed (float16 not supported)", field.name);
} else {
eprintln!("{} = {array:#?}", field.name);
}

// TODO(cmc): Re-enable extensions and these assertions once `arrow2-convert`
// TODO(#3741): Re-enable extensions and these assertions once `arrow2-convert`
// has been fully replaced.
if false {
util::assert_extensions(
Expand Down Expand Up @@ -352,15 +352,15 @@ fn roundtrip() {
.with_fuzz2018(fuzzy18_1.clone());

#[rustfmt::skip]
let expected_extensions: HashMap<_, _> = [
("fuzz2001", vec!["rerun.testing.components.AffixFuzzer1", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2002", vec!["rerun.testing.components.AffixFuzzer2", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2003", vec!["rerun.testing.components.AffixFuzzer3", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2004", vec!["rerun.testing.components.AffixFuzzer4", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2005", vec!["rerun.testing.components.AffixFuzzer5", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2006", vec!["rerun.testing.components.AffixFuzzer6", "rerun.testing.datatypes.AffixFuzzer1"]),
]
.into();
let expected_extensions: HashMap<_, _> = [
("fuzz2001", vec!["rerun.testing.components.AffixFuzzer1", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2002", vec!["rerun.testing.components.AffixFuzzer2", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2003", vec!["rerun.testing.components.AffixFuzzer3", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2004", vec!["rerun.testing.components.AffixFuzzer4", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2005", vec!["rerun.testing.components.AffixFuzzer5", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2006", vec!["rerun.testing.components.AffixFuzzer6", "rerun.testing.datatypes.AffixFuzzer1"]),
]
.into();

eprintln!("arch = {arch:#?}");
let serialized = arch.to_arrow2().unwrap();
Expand All @@ -369,14 +369,14 @@ fn roundtrip() {
// eprintln!("field = {field:#?}");
// eprintln!("array = {array:#?}");
if field.name == "rerun.testing.components.AffixFuzzer21" {
// TODO(jleibs): Fields that contain Float16 apparently don't supported fmt
// TODO(#3741): Fields that contain Float16 apparently don't supported fmt
// https://github.com/rerun-io/re_arrow2/blob/33a32000001df800e4840d92c33b03e7007311e1/src/array/primitive/fmt.rs#L39
eprintln!("{} = Can't be printed (float16 not supported)", field.name);
} else {
eprintln!("{} = {array:#?}", field.name);
}

// TODO(cmc): Re-enable extensions and these assertions once `arrow2-convert`
// TODO(#3741): Re-enable extensions and these assertions once `arrow2-convert`
// has been fully replaced.
if false {
util::assert_extensions(
Expand Down Expand Up @@ -405,15 +405,15 @@ fn roundtrip() {
.with_fuzz2118([fuzzy18_1.clone(), fuzzy18_2.clone(), fuzzy18_3.clone()]);

#[rustfmt::skip]
let expected_extensions: HashMap<_, _> = [
("fuzz2101", vec!["rerun.testing.components.AffixFuzzer1", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2102", vec!["rerun.testing.components.AffixFuzzer2", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2103", vec!["rerun.testing.components.AffixFuzzer3", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2104", vec!["rerun.testing.components.AffixFuzzer4", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2105", vec!["rerun.testing.components.AffixFuzzer5", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2106", vec!["rerun.testing.components.AffixFuzzer6", "rerun.testing.datatypes.AffixFuzzer1"]),
]
.into();
let expected_extensions: HashMap<_, _> = [
("fuzz2101", vec!["rerun.testing.components.AffixFuzzer1", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2102", vec!["rerun.testing.components.AffixFuzzer2", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2103", vec!["rerun.testing.components.AffixFuzzer3", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2104", vec!["rerun.testing.components.AffixFuzzer4", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2105", vec!["rerun.testing.components.AffixFuzzer5", "rerun.testing.datatypes.AffixFuzzer1"]),
("fuzz2106", vec!["rerun.testing.components.AffixFuzzer6", "rerun.testing.datatypes.AffixFuzzer1"]),
]
.into();

eprintln!("arch = {arch:#?}");
let serialized = arch.to_arrow2().unwrap();
Expand All @@ -422,14 +422,14 @@ fn roundtrip() {
// eprintln!("field = {field:#?}");
// eprintln!("array = {array:#?}");
if field.name == "rerun.testing.components.AffixFuzzer21" {
// TODO(jleibs): Fields that contain Float16 apparently don't supported fmt
// TODO(#3741): Fields that contain Float16 apparently don't supported fmt
// https://github.com/rerun-io/re_arrow2/blob/33a32000001df800e4840d92c33b03e7007311e1/src/array/primitive/fmt.rs#L39
eprintln!("{} = Can't be printed (float16 not supported)", field.name);
} else {
eprintln!("{} = {array:#?}", field.name);
}

// TODO(cmc): Re-enable extensions and these assertions once `arrow2-convert`
// TODO(#3741): Re-enable extensions and these assertions once `arrow2-convert`
// has been fully replaced.
if false {
util::assert_extensions(
Expand Down

0 comments on commit 0458605

Please sign in to comment.