Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit800e2a7

Browse files
author
Artur Zakirov
committed
Fix tests
1 parent92601e8 commit800e2a7

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

‎expected/rum.out

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,12 @@ SELECT rum_ts_distance(a, to_tsquery('pg_catalog.english', 'way & (go | half)'))
114114

115115
SELECT rum_ts_distance(a, to_tsquery('pg_catalog.english', 'way & (go | half)')), *
116116
FROM test_rum
117-
ORDER BY a <-> to_tsquery('pg_catalog.english', 'way & (go | half)') limit 5;
118-
rum_ts_distance | t | a
119-
-----------------+--------------------------------------------------------------------------+-------------------------------------------------------------------
120-
9.65659 | thinking--“to go or not to go?” We are this far on the way. Reached | 'far':11 'go':3,7 'reach':15 'think':1 'way':14
121-
10.0905 | itself. Put on your “specs” and look at the castle, half way up the | 'castl':10 'half':11 'look':7 'put':2 'spec':5 'way':12
122-
1e+20 | so well that only a fragment, as it were, gave way. It still hangs as if | 'fragment':6 'gave':10 'hang':14 'still':13 'way':11 'well':2
123-
1e+20 | my appreciation of you in a more complimentary way than by sending this | 'appreci':2 'complimentari':8 'send':12 'way':9
124-
1e+20 | but is an ancient structure (1592) in the Renaissance style, and one of | '1592':6 'ancient':4 'one':12 'renaiss':9 'structur':5 'style':10
125-
(5 rows)
117+
ORDER BY a <-> to_tsquery('pg_catalog.english', 'way & (go | half)') limit 2;
118+
rum_ts_distance | t | a
119+
-----------------+---------------------------------------------------------------------+---------------------------------------------------------
120+
9.65659 | thinking--“to go or not to go?” We are this far on the way. Reached | 'far':11 'go':3,7 'reach':15 'think':1 'way':14
121+
10.0905 | itself. Put on your “specs” and look at the castle, half way up the | 'castl':10 'half':11 'look':7 'put':2 'spec':5 'way':12
122+
(2 rows)
126123

127124
INSERT INTO test_rum (t) VALUES ('foo bar foo the over foo qq bar');
128125
INSERT INTO test_rum (t) VALUES ('345 qwerty copyright');

‎sql/rum.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ SELECT rum_ts_distance(a, to_tsquery('pg_catalog.english', 'way & (go | half)'))
4141
ORDER BY a<-> to_tsquery('pg_catalog.english','way & (go | half)');
4242
SELECT rum_ts_distance(a, to_tsquery('pg_catalog.english','way & (go | half)')),*
4343
FROM test_rum
44-
ORDER BY a<-> to_tsquery('pg_catalog.english','way & (go | half)')limit5;
44+
ORDER BY a<-> to_tsquery('pg_catalog.english','way & (go | half)')limit2;
4545

4646
INSERT INTO test_rum (t)VALUES ('foo bar foo the over foo qq bar');
4747
INSERT INTO test_rum (t)VALUES ('345 qwerty copyright');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp