Skip to content

Commit 69a4cdb

Browse files
author
Artur Zakirov
committed
Fix tests
1 parent 800e2a7 commit 69a4cdb

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

expected/rum.out

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,13 @@ 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 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)
117+
ORDER BY a <-> to_tsquery('pg_catalog.english', 'way & (go | half)') limit 3;
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 | my appreciation of you in a more complimentary way than by sending this | 'appreci':2 'complimentari':8 'send':12 'way':9
123+
(3 rows)
123124

124125
INSERT INTO test_rum (t) VALUES ('foo bar foo the over foo qq bar');
125126
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)') limit 2;
44+
ORDER BY a <-> to_tsquery('pg_catalog.english', 'way & (go | half)') limit 3;
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)