Skip to content

Commit

Permalink
test get ready
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Aug 26, 2024
1 parent 08ddf5f commit 6039dc2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions crates/tests/futures_impl/tests/ready_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ fn ok() -> Result<()> {
E_ILLEGAL_DELEGATE_ASSIGNMENT
);

IAsyncAction::ready(Ok(())).get()?;
Ok(())
}

Expand Down
1 change: 1 addition & 0 deletions crates/tests/futures_impl/tests/ready_action_progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fn ok() -> Result<()> {
E_ILLEGAL_DELEGATE_ASSIGNMENT
);

IAsyncActionWithProgress::<i32>::ready(Ok(())).get()?;
Ok(())
}

Expand Down
5 changes: 3 additions & 2 deletions crates/tests/futures_impl/tests/ready_operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ fn ok() -> Result<()> {
);

assert_eq!(
IAsyncOperation::ready(Ok(HSTRING::from("hello"))).GetResults(),
Ok("hello".into())
IAsyncOperation::ready(Ok(HSTRING::from("hello"))).get()?,
"hello"
);

Ok(())
}

Expand Down
5 changes: 3 additions & 2 deletions crates/tests/futures_impl/tests/ready_operation_progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ fn ok() -> Result<()> {
);

assert_eq!(
IAsyncOperationWithProgress::<HSTRING, i32>::ready(Ok(HSTRING::from("hello"))).GetResults(),
Ok("hello".into())
IAsyncOperationWithProgress::<HSTRING, i32>::ready(Ok(HSTRING::from("hello"))).get()?,
"hello"
);

Ok(())
}

Expand Down

0 comments on commit 6039dc2

Please sign in to comment.