Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(#3663): fix warnings for failOnWarning turn ON #3792

Merged
merged 11 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading