File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,9 @@ $$\mid -3 \mid$$
82
82
83
83
#### ` toBeLogarithmOf() `
84
84
$$ \log_{base}(number) $$
85
+ <br >
85
86
Base default is euler's number.
86
87
``` php
87
88
expect(0.69897000433602)->toBeLogarithmOf(number: 5, base: 10);
88
89
expect(1)->not->toBeLogarithmOf(number: 1);
89
90
```
90
-
Original file line number Diff line number Diff line change 21
21
test ('failures ' , function (float $ number , float $ base ): void {
22
22
expect (1 )->toBeLogarithmOf ($ number , $ base );
23
23
})
24
- ->with ([
25
- [1 , M_E ],
26
- [-1 , M_E ],
27
- [1 , -M_E ],
28
- ])
29
- ->throws (ExpectationFailedException::class);
24
+ ->with ([
25
+ [1 , M_E ],
26
+ [-1 , M_E ],
27
+ [1 , -M_E ],
28
+ ])
29
+ ->throws (ExpectationFailedException::class);
30
30
31
31
test ('failures not ' , function (): void {
32
32
expect (0 )->not ->toBeLogarithmOf (1 );
You can’t perform that action at this time.
0 commit comments