Add bin and edit workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s

This commit is contained in:
2026-09-16 13:11:16 -06:00
parent c8ac4fcae5
commit 4cee170d66
17576 changed files with 895740 additions and 2 deletions
@@ -0,0 +1,20 @@
require 'facets/math/sqr'
require 'facets/numeric/range'
test_case Math do
class_method :sqr do
test do
Math.sqr(-0.9).range(1.0e-6).assert === 0.81
Math.sqr(-0.7).range(1.0e-6).assert === 0.49
Math.sqr(-0.7).range(1.0e-6).assert === 0.49
Math.sqr( 0.9).range(1.0e-6).assert === 0.81
end
end
# TODO: Check complementarity of sqrt and sqr
# assert_equal_float(0.3, Math.sqrt(Math.sqr( 0.3)), 1.0e-6)
# assert_equal_float(0.3, Math.sqrt(Math.sqr(-0.3)), 1.0e-6)
# assert_equal_float(0.3, Math.sqr(Math.sqrt( 0.3)), 1.0e-6)
end