Fix assertions now that we use different hash functions

This commit is contained in:
Antonio Scandurra 2023-12-12 14:59:51 +01:00
parent b871f906d6
commit 6159a59534
2 changed files with 8 additions and 8 deletions

View file

@ -1093,14 +1093,14 @@ mod tests {
lsp.receive_notification::<lsp::notification::DidCloseTextDocument>() lsp.receive_notification::<lsp::notification::DidCloseTextDocument>()
.await, .await,
lsp::DidCloseTextDocumentParams { lsp::DidCloseTextDocumentParams {
text_document: lsp::TextDocumentIdentifier::new(buffer_2_uri.clone()), text_document: lsp::TextDocumentIdentifier::new(buffer_1_uri.clone()),
} }
); );
assert_eq!( assert_eq!(
lsp.receive_notification::<lsp::notification::DidCloseTextDocument>() lsp.receive_notification::<lsp::notification::DidCloseTextDocument>()
.await, .await,
lsp::DidCloseTextDocumentParams { lsp::DidCloseTextDocumentParams {
text_document: lsp::TextDocumentIdentifier::new(buffer_1_uri.clone()), text_document: lsp::TextDocumentIdentifier::new(buffer_2_uri.clone()),
} }
); );
@ -1119,10 +1119,10 @@ mod tests {
.await, .await,
lsp::DidOpenTextDocumentParams { lsp::DidOpenTextDocumentParams {
text_document: lsp::TextDocumentItem::new( text_document: lsp::TextDocumentItem::new(
buffer_2_uri.clone(), buffer_1_uri.clone(),
"plaintext".into(), "plaintext".into(),
0, 0,
"Goodbye".into() "Hello world".into()
), ),
} }
); );
@ -1131,10 +1131,10 @@ mod tests {
.await, .await,
lsp::DidOpenTextDocumentParams { lsp::DidOpenTextDocumentParams {
text_document: lsp::TextDocumentItem::new( text_document: lsp::TextDocumentItem::new(
buffer_1_uri.clone(), buffer_2_uri.clone(),
"plaintext".into(), "plaintext".into(),
0, 0,
"Hello world".into() "Goodbye".into()
), ),
} }
); );

View file

@ -608,14 +608,14 @@ mod tests {
( (
1..2, 1..2,
HighlightStyle { HighlightStyle {
color: Some(blue()), color: Some(green()),
..Default::default() ..Default::default()
} }
), ),
( (
2..3, 2..3,
HighlightStyle { HighlightStyle {
color: Some(blue()), color: Some(green()),
font_style: Some(FontStyle::Italic), font_style: Some(FontStyle::Italic),
..Default::default() ..Default::default()
} }