aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorlukeflo2024-10-17 13:49:52 +0200
committerlukeflo2024-10-17 13:49:52 +0200
commit374dd9b36dec8d122078cb7ef10dd912fef32460 (patch)
tree57c829626f5654ed2811b08cf652396dac017244 /src/backend
parentd54b08f8fbe372afdd9b4bc3e366555ebdef4372 (diff)
downloadbibiman-374dd9b36dec8d122078cb7ef10dd912fef32460.tar.gz
bibiman-374dd9b36dec8d122078cb7ef10dd912fef32460.zip
testwise rewrite entry table parsing
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/search.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/backend/search.rs b/src/backend/search.rs
index f9062c8..4576d2d 100644
--- a/src/backend/search.rs
+++ b/src/backend/search.rs
@@ -114,17 +114,17 @@ mod tests {
#[test]
fn test_vector_join() {
- let bibvec: EntryTableItem = EntryTableItem::new(
- "Author",
- "Title",
- "1999",
- "article",
- "hello, bye",
- "author_1999",
- "An abstract with multiple sentences. Here is the second",
- "https://www.bibiman.org",
- "/home/file/path.pdf",
- );
+ let bibvec: EntryTableItem = EntryTableItem {
+ authors: "Author".to_string(),
+ title: "Title".to_string(),
+ year: "1999".to_string(),
+ pubtype: "article".to_string(),
+ keywords: "hello, bye".to_string(),
+ citekey: "author_1999".to_string(),
+ abstract_text: "An abstract with multiple sentences. Here is the second".to_string(),
+ doi_url: "https://www.bibiman.org".to_string(),
+ filepath: "/home/file/path.pdf".to_string(),
+ };
let joined_vec = BibiSearch::convert_to_string(&bibvec);