We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae07dba commit e9e21e1Copy full SHA for e9e21e1
test/xitdb/cursor_test.clj
@@ -24,4 +24,7 @@
24
(swap! cursor1 assoc-in [3 :hidden] :changed-by-swap!)
25
(is (= [1 2 3 {:hidden :changed-by-swap!} 5]) (xdb/materialize @cursor1))
26
(is (= :changed-by-swap! @cursor3))
27
- (is (= 3 @cursor2))))))
+ (is (= 3 @cursor2)))
28
+
29
+ (testing "Correctly handles invalid cursor path"
30
+ (is (thrown? IndexOutOfBoundsException @(xdb/xdb-cursor db [:foo :bar 999])))))))
0 commit comments