aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration.rs
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2024-10-02 12:18:39 +0300
committerJan Tuomi <jan@jantuomi.fi>2024-10-02 12:18:39 +0300
commitf58051f117056f5449cf97243042a2222d1cd318 (patch)
tree736a8503a8b87d3c071782ed8fc051f60d9bfdc8 /tests/integration.rs
parent0cb6f060ad7a8373c1b87b29d1bdf6f3c875aa55 (diff)
Implement secondary indexes
Diffstat (limited to 'tests/integration.rs')
-rw-r--r--tests/integration.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration.rs b/tests/integration.rs
index 892fa55..41c8807 100644
--- a/tests/integration.rs
+++ b/tests/integration.rs
@@ -56,7 +56,7 @@ fn test_upsert_and_get_with_memtable() {
};
db.upsert(&record).unwrap();
- let result = db.get(&Field::Id, &RecordValue::Int(1)).unwrap().unwrap();
+ let result = db.get(&RecordValue::Int(1)).unwrap().unwrap();
// Check that the IDs match
assert!(match (&result.values[0], &record.values[0]) {
@@ -122,7 +122,7 @@ fn test_upsert_and_get_without_memtable() {
db.upsert(&record3).unwrap();
// Get with ID = 0
- let result = db.get(&Field::Id, &RecordValue::Int(0)).unwrap().unwrap();
+ let result = db.get(&RecordValue::Int(0)).unwrap().unwrap();
// Should match record0
assert!(match (&result.values[0], &record0.values[0]) {
@@ -135,7 +135,7 @@ fn test_upsert_and_get_without_memtable() {
});
// Get with ID = 1
- let result = db.get(&Field::Id, &RecordValue::Int(1)).unwrap().unwrap();
+ let result = db.get(&RecordValue::Int(1)).unwrap().unwrap();
// Should match record2
assert!(match (&result.values[0], &record2.values[0]) {