Skip to content

Commit

Permalink
continuing cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
microcassidy committed Jul 21, 2023
1 parent c14486c commit ef59dc5
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions rust/tests/dat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,42 +77,3 @@ dat_test!(
test_with_checkpoint "with_checkpoint",
test_with_schema_change "with_schema_change"
);

// #[tokio::test]
// async fn test_dat() -> TestResult {
// let test_case = Path::new("basic_append");
// let ctx: SessionContext = SessionContext::new();
// let root = Path::new("tests/data/dat-data/v0.0.2/reader_tests/generated").join(test_case);
// let actual_path = root.join(Path::new("delta"));
// let expected_path_root = root.join(Path::new("expected"));
// let mut actual = open_table(&actual_path.to_str().unwrap()).await.unwrap();
// let max_verison = actual.version();
// for version in (0..=max_verison).rev() {
// let vstring = match max_verison == version {
// true => "latest".to_owned(),
// false => "v".to_owned() + &version.to_string(),
// };
// let expected_metadata_rdr = std::fs::File::open(
// expected_path_root
// .join(&Path::new(&vstring))
// .join("table_version_metadata.json"),
// )?;
// let table_version_metadata: TableVersionMetadata =
// serde_json::from_reader(expected_metadata_rdr)?;
// let expected_path = expected_path_root
// .join(Path::new(&vstring))
// .join(Path::new("table_content"));
// let expected = open_table_with_version(
// expected_path.to_str().unwrap(),
// table_version_metadata.version,
// )
// .await
// .unwrap();
// let mut actual = open_table(&actual_path.to_str().unwrap()).await.unwrap();
// actual.load_version(version).await.unwrap();
// ctx.register_table("actual", Arc::new(actual))?;
// ctx.register_table("expected", Arc::new(expected))?;
// assert!(deltaeq(&ctx, "actual", "expected").await);
// }
// Ok(())
// }

0 comments on commit ef59dc5

Please sign in to comment.