Skip to content

Commit

Permalink
Merge pull request #3792 from uchitsa/3663-fail-on-warning-on
Browse files Browse the repository at this point in the history
bug(#3663): fix warnings for failOnWarning turn ON
  • Loading branch information
yegor256 authored Jan 8, 2025
2 parents c783fd2 + 1ece476 commit bdad472
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions eo-runtime/src/main/eo/org/eolang/math/angle.eo
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
# The angle.
[value] > angle
value > @
# Converts this from radians to degrees
# Converts this from radians to degrees.
angle > in-degrees
div.
^.times 180.0
pi
# Converts this from degrees to radians
# Converts this from degrees to radians.
angle > in-radians
div.
$.times pi
Expand Down
15 changes: 8 additions & 7 deletions eo-runtime/src/main/eo/org/eolang/nan.eo
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
+package org.eolang
+version 0.0.0

# Not a number.
# The `not a number` object is an abstraction
# for representing undefined or unrepresentable numerical results.
[] > nan
number 7F-F8-00-00-00-00-00-00 > @
$ > floor
Expand All @@ -35,25 +36,25 @@
false > is-integer
error "Can't convert NaN to i64" > as-i64

# Tests that $ = x.
# Tests that $ value is equal to x.
false > [x] > eq

# Tests that $ < x.
# Tests that the value $ less than x.
false > [x] > lt

# Tests that $ <= x.
# Tests that $ less or equal than x.
false > [x] > lte

# Tests that $ > x.
# Tests that $ value greater than x.
false > [x] > gt

# Tests that $ >= x.
# Tests that $ greater or equal than x.
false > [x] > gte

# Returns the multiplication of $ and x.
^ > [x] > times

# Sum of $ and x.
# Returns the result of the sum of $ and x.
^ > [x] > plus

# Returns the difference between $ and x.
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/main/eo/org/eolang/negative-infinity.eo
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
nan
^

# Quotient of the division of $ by x
# Quotient of the division of $ by x.
[x] > div
x > value!
number value > num
Expand Down
4 changes: 2 additions & 2 deletions eo-runtime/src/main/eo/org/eolang/structs/list.eo
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
accum.with item > [accum item]

# Returns index of the first particular item in list.
# If the list has no this item, index-of returns -1
# If the list has no this item, index-of returns -1.
[wanted] > index-of
^.reducedi > @
-1
Expand All @@ -182,7 +182,7 @@
accum

# Returns index of the last particular item in list.
# If the list has no this item, returns -1
# If the list has no this item, returns -1.
[wanted] > last-index-of
^.reducedi > @
-1
Expand Down
2 changes: 1 addition & 1 deletion eo-runtime/src/main/eo/org/eolang/txt/text.eo
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
^.index-of substring

# Returns index of `substring` in current `text`.
# If no `substring` was found, it returns -1
# If no `substring` was found, it returns -1.
[substring] > index-of
(string ^.origin.as-bytes).length > self-len!
string > substr
Expand Down

0 comments on commit bdad472

Please sign in to comment.