Skip to content

Commit 6ad636e

Browse files
committed
Replaced instances of 1.0/0.0 with inf in tests
1 parent b7e0960 commit 6ad636e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/trig.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ pub mod trig_functions {
281281
/// assert_eq(csc(-pi/2), -1.0)
282282
/// ```
283283
/// ```typescript
284-
/// assert_eq(csc(0.0), 1.0/0.0)
284+
/// assert_eq(csc(0.0), inf)
285285
/// ```
286286
/// ```typescript
287287
/// assert_eq(csc(pi/2), 1.0)
@@ -296,7 +296,7 @@ pub mod trig_functions {
296296
/// assert_eq(cscd(-90.0), -1.0)
297297
/// ```
298298
/// ```typescript
299-
/// assert_eq(cscd(0.0), 1.0/0.0)
299+
/// assert_eq(cscd(0.0), inf)
300300
/// ```
301301
/// ```typescript
302302
/// assert_eq(cscd(90.0), 1.0)
@@ -311,7 +311,7 @@ pub mod trig_functions {
311311
/// assert_eq(acsc(-1.0), -pi/2)
312312
/// ```
313313
/// ```typescript
314-
/// assert_eq(acsc(1.0/0.0), 0.0)
314+
/// assert_eq(acsc(inf), 0.0)
315315
/// ```
316316
/// ```typescript
317317
/// assert_eq(acsc(1.0), pi/2)

0 commit comments

Comments
 (0)