Example #1
0
    public function testNormVector()
    {
        $directory = new Directory\Filesystem(__DIR__ . '/_source/_files');
        $segmentInfo = new Index\SegmentInfo($directory, '_1', 2);

        $this->assertEquals($segmentInfo->normVector('contents'), "\x69\x6B");
    }
Example #2
0
 public function testNormVector()
 {
     $directory = new Directory\Filesystem(dirname(__FILE__) . '/_source/_files');
     $segmentInfo = new Index\SegmentInfo($directory, '_1', 2);
     $this->assertEquals($segmentInfo->normVector('contents'), "ik");
 }