mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-26 07:39:58 +00:00
## Problem Some extensions do not contain tests, which can be easily run on top of docker-compose or staging. ## Summary of changes Added the pg_regress based tests for `pg_tiktoken`, `pgx_ulid`, `pg_rag` Now they will be run on top of docker-compose, but I intend to adopt them to be run on top staging in the next PRs
14 lines
359 B
Plaintext
14 lines
359 B
Plaintext
-- Text processing function tests
|
|
SELECT rag.markdown_from_html('<p>Hello <i>world</i></p>');
|
|
markdown_from_html
|
|
--------------------
|
|
Hello _world_
|
|
(1 row)
|
|
|
|
SELECT rag.chunks_by_character_count('the cat sat on the mat', 10, 5);
|
|
chunks_by_character_count
|
|
---------------------------------------
|
|
{"the cat","cat sat on","on the mat"}
|
|
(1 row)
|
|
|