[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/triples ac10a3cc04 14/16: Test the ability to store vec
From: |
ELPA Syncer |
Subject: |
[elpa] externals/triples ac10a3cc04 14/16: Test the ability to store vectors |
Date: |
Tue, 21 Feb 2023 20:58:53 -0500 (EST) |
branch: externals/triples
commit ac10a3cc04e9eef12e0830e8001ccfaa75e6620e
Author: Andrew Hyatt <ahyatt@gmail.com>
Commit: Andrew Hyatt <ahyatt@gmail.com>
Test the ability to store vectors
---
triples-test.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/triples-test.el b/triples-test.el
index c181b9a845..1f1fbbe541 100644
--- a/triples-test.el
+++ b/triples-test.el
@@ -296,6 +296,16 @@ easily debug into it.")
(should (equal '(:name ("Name"))
(triples-get-type db "foo" 'named)))))
+(ert-deftest triples-vector ()
+ (triples-test-with-temp-db
+ (triples-add-schema db 'named 'name)
+ (triples-add-schema db 'embedding '(embedding :base/unique t :base/type
vector))
+ (triples-set-type db "foo" 'named :name '("Name"))
+ (triples-set-type db "foo" 'embedding :embedding [1 2 3 4 5])
+ (should (equal '(:embedding [1 2 3 4 5])
+ (triples-get-type db "foo" 'embedding)))
+ (should-error (triples-set-type db "foo" 'embedding :embedding '(1 2 3)))))
+
(ert-deftest triples-reversed ()
(triples-test-with-temp-db
(triples-add-schema db 'named
- [elpa] externals/triples 6aa95d1333 06/16: Set the last-update-time when making a backup, (continued)
- [elpa] externals/triples 6aa95d1333 06/16: Set the last-update-time when making a backup, ELPA Syncer, 2023/02/21
- [elpa] externals/triples f991abd550 10/16: Merge branch 'main' into develop, ELPA Syncer, 2023/02/21
- [elpa] externals/triples 5b3c1f191a 02/16: Create `triples-backup' and some surrounding functionality., ELPA Syncer, 2023/02/21
- [elpa] externals/triples faf376c55c 04/16: Note new triples-backups module in CHANGELOG.org., ELPA Syncer, 2023/02/21
- [elpa] externals/triples 76aa341e6f 07/16: Add `triples-mode-subject', for renaming a subject., ELPA Syncer, 2023/02/21
- [elpa] externals/triples c09ef2932c 08/16: Merge branch 'main' into develop, ELPA Syncer, 2023/02/21
- [elpa] externals/triples a759cddd94 03/16: Add `triples-backups' module., ELPA Syncer, 2023/02/21
- [elpa] externals/triples e24233b65b 09/16: Fix minor misspelling, ELPA Syncer, 2023/02/21
- [elpa] externals/triples 183bd8156f 12/16: Remove trailing whitespace, ELPA Syncer, 2023/02/21
- [elpa] externals/triples 0620d0f25d 11/16: Fix error in `triples-backup' when called with nil argument, ELPA Syncer, 2023/02/21
- [elpa] externals/triples ac10a3cc04 14/16: Test the ability to store vectors,
ELPA Syncer <=
- [elpa] externals/triples 8a48e2b2f4 16/16: Set version to 0.2.5, ELPA Syncer, 2023/02/21
- [elpa] externals/triples 4be631ae95 15/16: Fix inescapification that can happen in strings, ELPA Syncer, 2023/02/21
- [elpa] externals/triples 91536349e9 13/16: Warn against usage of `triples-delete-subject', ELPA Syncer, 2023/02/21