|
109 | 109 | :where [2 ?a ?v]] db) |
110 | 110 | #{[:name "Petr"] [:age 37]}))))) |
111 | 111 |
|
112 | | -(deftest test-retract-without-value-339 |
| 112 | +(deftest test-retract-without-value-issue-339 |
113 | 113 | (let [db (-> (d/empty-db {:aka {:db/cardinality :db.cardinality/many} |
114 | 114 | :friend {:db/valueType :db.type/ref}}) |
115 | 115 | (d/db-with [{:db/id 1, :name "Ivan", :age 15, :aka ["X" "Y" "Z"], :friend 2} |
|
275 | 275 | (is (= #{[1 :name "Ivan"] [2 :ref 1]} |
276 | 276 | (tdc/all-datoms db')))) |
277 | 277 |
|
278 | | - (testing "#363" |
| 278 | + (testing "issue-363" |
279 | 279 | (let [db' (-> db |
280 | 280 | (d/db-with [[:db/add -1 :name "Ivan"]]) |
281 | 281 | (d/db-with [[:db/add -1 :name "Ivan"] |
|
287 | 287 | [:db/add -2 :ref -1]]))] |
288 | 288 | (is (= #{[1 :aka "Batman"] [2 :ref 1]} (tdc/all-datoms db'))))))) |
289 | 289 |
|
290 | | -(deftest test-tempid-ref-295 |
| 290 | +(deftest test-tempid-ref-issue-295 |
291 | 291 | (let [db (-> (d/empty-db {:ref {:db/unique :db.unique/identity |
292 | 292 | :db/valueType :db.type/ref}}) |
293 | 293 | (d/db-with [[:db/add -1 :name "Ivan"] |
|
327 | 327 | (let [db (d/empty-db {:friend {:db/valueType :db.type/ref} |
328 | 328 | :comp {:db/valueType :db.type/ref, :db/isComponent true} |
329 | 329 | :multi {:db/cardinality :db.cardinality/many}})] |
330 | | - (testing "Unused tempid" ;; #304 |
| 330 | + (testing "Unused tempid" ;; issue-304 |
331 | 331 | (is (thrown-msg? "Tempids used only as value in transaction: (-2)" |
332 | 332 | (d/db-with db [[:db/add -1 :friend -2]]))) |
333 | 333 | (is (thrown-msg? "Tempids used only as value in transaction: (-2)" |
334 | 334 | (d/db-with db [{:db/id -1 :friend -2}]))) |
335 | 335 | (is (thrown-msg? "Tempids used only as value in transaction: (-1)" |
336 | 336 | (d/db-with db [{:db/id -1} |
337 | 337 | [:db/add -2 :friend -1]]))) |
338 | | - ; Needs #357 |
| 338 | + ; Needs issue-357 |
339 | 339 | ; (is (thrown-msg? "Tempids used only as value in transaction: (-1)" |
340 | 340 | ; (d/db-with db [{:db/id -1 :comp {}} |
341 | 341 | ; [:db/add -2 :friend -1]]))) |
|
374 | 374 | (is (= (into {} (d/entity @conn tx-id)) |
375 | 375 | {:prop4 "prop4"}))))))) |
376 | 376 |
|
377 | | -(deftest test-transient-294 |
378 | | - "db.fn/retractEntity retracts attributes of adjacent entities #294" |
| 377 | +(deftest test-transient-issue-294 |
| 378 | + "db.fn/retractEntity retracts attributes of adjacent entities issue-294" |
379 | 379 | (let [db (reduce #(d/db-with %1 [{:db/id %2 :a1 1 :a2 2 :a3 3}]) |
380 | 380 | (d/empty-db) |
381 | 381 | (range 1 10)) |
|
389 | 389 | (d/datom 2 :a3 3)] |
390 | 390 | (:tx-data report))))) |
391 | 391 |
|
392 | | -(deftest test-large-ids-292 |
| 392 | +(deftest test-large-ids-issue-292 |
393 | 393 | (let [db (d/empty-db {:ref {:db/valueType :db.type/ref}})] |
394 | 394 | (is (thrown-msg? "Highest supported entity id is 2147483647, got 285873023227265" |
395 | 395 | (d/with db [[:db/add 285873023227265 :name "Valerii"]]))) |
|
404 | 404 | (is (thrown-msg? "Highest supported entity id is 2147483647, got 285873023227265" |
405 | 405 | (d/with db [(db/datom 1 :ref 285873023227265)])))))) |
406 | 406 |
|
407 | | -(deftest test-uncomparable-356 |
| 407 | +(deftest test-uncomparable-issue-356 |
408 | 408 | (let [db (d/empty-db {:multi {:db/cardinality :db.cardinality/many} |
409 | 409 | :index {:db/index true}})] |
410 | 410 |
|
|
445 | 445 | (is (= [(db/datom 1 :index {:map 3})] |
446 | 446 | (vec (d/datoms db' :avet :index {:map 3} 1))))))) |
447 | 447 |
|
448 | | -(deftest test-compare-numbers-js-404 |
| 448 | +(deftest test-compare-numbers-js-issue-404 |
449 | 449 | (let [db (d/db-with (d/empty-db) [{:num 42.5}]) |
450 | 450 | db' (d/db-with db [[:db/retract 1 :num 42]])] |
451 | 451 | (is (= #{[1 :num 42.5]} (tdc/all-datoms db'))))) |
452 | 452 |
|
453 | | -(deftest test-transitive-type-compare-386 |
| 453 | +(deftest test-transitive-type-compare-issue-386 |
454 | 454 | (let [txs [[{:block/uid "2LB4tlJGy"}] |
455 | 455 | [{:block/uid "2ON453J0Z"}] |
456 | 456 | [{:block/uid "2KqLLNbPg"}] |
|
0 commit comments