Skip to content

Commit

Permalink
Revert test diff
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-nick committed Aug 5, 2024
1 parent 7eb392c commit a64561e
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions sdk/tests/compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,14 @@ fn test_compat() -> Result<()> {
&expected_remote_asset_patch,
asset_details.uncompressed_remote_size.unwrap(),
)
.expect("TODO3"); // TODO: err msg
.expect("TODO"); // TODO: err msg
let mut expected_remote_asset = Vec::new(); // TODO: prealloc
Bspatch::new(&expected_remote_asset_patch)
.expect("TODO2")
.apply(&original_asset, &mut expected_remote_asset)
.expect("TODO1");
bsdiff::patch(
&original_asset,
&mut Cursor::new(expected_remote_asset_patch),
&mut expected_remote_asset,
)
.expect("TODO");

let expected_remote_reader: Reader =
serde_json::from_reader(File::open(asset_dir.join("remote.json"))?)?;
Expand All @@ -197,12 +199,14 @@ fn test_compat() -> Result<()> {
&expected_embedded_asset_patch,
asset_details.uncompressed_embedded_size,
)
.expect("TODO4"); // TODO: err msg
.expect("TODO"); // TODO: err msg
let mut expected_embedded_asset = Vec::new(); // TODO: prealloc
Bspatch::new(&expected_embedded_asset_patch)
.expect("TODO5")
.apply(&original_asset, &mut expected_embedded_asset)
.expect("TODO6");
bsdiff::patch(
&original_asset,
&mut Cursor::new(expected_embedded_asset_patch),
&mut expected_embedded_asset,
)
.expect("TODO");

let expected_embedded_reader: Reader =
serde_json::from_reader(File::open(asset_dir.join("embedded.json"))?)?;
Expand Down

0 comments on commit a64561e

Please sign in to comment.