Warning: session_start(): open(/var/lib/php/sessions/sess_gd91talv698cbs41t2v0ntojgt, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
svoid test_positionalTokenIndex2_filter() {
PositionalTokenIndex2 idx = positionalTokenIndex2_wordTok(tlft([[
you are here
what is this
hello world
hello you
hello my friend
]]));
assertEqualsVerbose(ll("you are here"), map join(
positionalTokenIndex2_filter(idx, "you * *")));
assertEqualsVerbose(ll("hello world"), map join(
positionalTokenIndex2_filter(idx, "* world")));
// index should preserve original order
assertEqualsVerbose(ll("hello world", "hello you"), map join(positionalTokenIndex2_filter("hello *"));
assertEqualsVerbose(ll("what is this"), map join(positionalTokenIndex2_filter("* is this")));
assertEqualsVerbose(ll(), unnull(map join(positionalTokenIndex2_filter("* * is"))));
}