Skip to content

Commit 945f1a1

Browse files
committed
Fixed tests on Linux ARM
1 parent d2eb065 commit 945f1a1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/DocumentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function testEntities()
1111
['text' => 'GitHub', 'tag' => 'LOCATION', 'score' => 0.5660115198329334, 'offset' => 13, 'token_index' => 3, 'token_length' => 1],
1212
['text' => 'San Francisco', 'tag' => 'LOCATION', 'score' => 1.3890524313885309, 'offset' => 23, 'token_index' => 5, 'token_length' => 2]
1313
];
14-
$this->assertEquals($expected, $this->doc()->entities());
14+
$this->assertEqualsWithDelta($expected, $this->doc()->entities(), 0.001);
1515
}
1616

1717
public function testEntitiesTokens()

tests/NERTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function testEntities()
1111
['text' => 'GitHub', 'tag' => 'LOCATION', 'score' => 0.5660115198329334, 'offset' => 13, 'token_index' => 3, 'token_length' => 1],
1212
['text' => 'San Francisco', 'tag' => 'LOCATION', 'score' => 1.3890524313885309, 'offset' => 23, 'token_index' => 5, 'token_length' => 2]
1313
];
14-
$this->assertEquals($expected, $this->model()->entities($this->text()));
14+
$this->assertEqualsWithDelta($expected, $this->model()->entities($this->text()), 0.001);
1515
}
1616

1717
public function testTokens()

0 commit comments

Comments
 (0)