We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c128a80 commit a386551Copy full SHA for a386551
tests/EmbedCodeTest.php
@@ -12,7 +12,7 @@ public function testRatioCalculationNormal()
12
{
13
// Normal case: width=380, height=120
14
$code = new EmbedCode('<iframe></iframe>', 380, 120);
15
- $this->assertEquals(31.579, $code->ratio);
+ $this->assertEqualsWithDelta(31.579, $code->ratio, 0.001);
16
}
17
18
public function testRatioCalculationWithNullWidth()
@@ -65,7 +65,7 @@ public function testJsonSerialize()
65
$this->assertEquals('<div>test</div>', $json['html']);
66
$this->assertEquals(640, $json['width']);
67
$this->assertEquals(480, $json['height']);
68
- $this->assertEquals(75.0, $json['ratio']);
+ $this->assertEqualsWithDelta(75.0, $json['ratio'], 0.001);
69
70
71
public function testToString()
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments