Function ngrams fixed tests

This commit is contained in:
Maksim Kita 2021-10-22 19:50:43 +03:00
parent 243be5028a
commit 9ef6bca27d
2 changed files with 8 additions and 8 deletions

View File

@ -1,20 +1,20 @@
['T','e','s','t']
['Te','es','st']
['Tes','est']
['Tes','est']
['Test']
[]
['T','e','s','t']
['Te','es','st']
['Tes','est']
['Tes','est']
['Test']
[]
['T','e','s','t']
['Te','es','st']
['Tes','est']
['Tes','est']
['Test']
[]
['T','e','s','t']
['Te','es','st']
['Tes','est']
['Tes','est']
['Test']
[]

View File

@ -1,23 +1,23 @@
SELECT ngrams('Test', 1);
SELECT ngrams('Test', 2);
SELECT ngrams('Test', 3);
SELECT ngrams('Test', 3);
SELECT ngrams('Test', 4);
SELECT ngrams('Test', 5);
SELECT ngrams(materialize('Test'), 1);
SELECT ngrams(materialize('Test'), 2);
SELECT ngrams(materialize('Test'), 3);
SELECT ngrams(materialize('Test'), 3);
SELECT ngrams(materialize('Test'), 4);
SELECT ngrams(materialize('Test'), 5);
SELECT ngrams(toFixedString('Test', 4), 1);
SELECT ngrams(toFixedString('Test', 4), 2);
SELECT ngrams(toFixedString('Test', 4), 3);
SELECT ngrams(toFixedString('Test', 4), 3);
SELECT ngrams(toFixedString('Test', 4), 4);
SELECT ngrams(toFixedString('Test', 4), 5);
SELECT ngrams(materialize(toFixedString('Test', 4)), 1);
SELECT ngrams(materialize(toFixedString('Test', 4)), 2);
SELECT ngrams(materialize(toFixedString('Test', 4)), 3);
SELECT ngrams(materialize(toFixedString('Test', 4)), 3);
SELECT ngrams(materialize(toFixedString('Test', 4)), 4);
SELECT ngrams(materialize(toFixedString('Test', 4)), 5);