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,15 @@
covers 'facets/symbol/as_s'
test_case Symbol do
method :as_s do
test do
s = :foo.as_s.sub('f','g')
s.assert == :goo
end
end
end
@@ -0,0 +1,15 @@
covers 'facets/symbol/bang'
test_case Symbol do
method :bang? do
test do
:a.refute.bang?
:a?.refute.bang?
:a!.assert.bang?
end
end
end
@@ -0,0 +1,22 @@
covers 'facets/symbol/chomp'
test_case Symbol do
method :chomp do
test do
:ab.chomp(:b).assert == :a
end
end
method :lchomp do
test do
:ab.lchomp(:a).assert == :b
end
end
end
@@ -0,0 +1,20 @@
covers 'facets/symbol/generate'
test_case Symbol do
class_method :generate do
test "without key" do
Symbol.generate.assert == :'-1'
Symbol.generate.assert == :'-2'
end
end
class_method :generate do
test "with prefix key" do
Symbol.generate('orange').assert == :'orange-1'
Symbol.generate('orange').assert == :'orange-2'
end
end
end
@@ -0,0 +1,19 @@
covers 'facets/symbol/not'
test_case Symbol do
method :~@ do
test do
~:a.assert == :"~a"
end
end
method :not? do
test do
a = :a
n = ~a
assert( n.not? )
end
end
end
@@ -0,0 +1,15 @@
covers 'facets/symbol/op_div'
test_case Symbol do
method :/ do
test do
(:merb / "string").assert == "merb/string"
(:merb / :symbol).assert == "merb/symbol"
end
end
end
@@ -0,0 +1,19 @@
covers 'facets/symbol/plain'
test_case Symbol do
method :plain? do
test do
assert( :try.plain? )
end
test do
assert( ! :try=.plain? )
assert( ! :try?.plain? )
end
end
end
@@ -0,0 +1,19 @@
covers 'facets/symbol/query'
test_case Symbol do
method :query? do
test do
assert( :try?.query? )
end
test do
assert( ! :try.query? )
assert( ! :try=.query? )
end
end
end
@@ -0,0 +1,17 @@
covers 'facets/symbol/setter'
test_case Symbol do
method :setter? do
test do
assert( :try=.setter? )
end
test do
assert( ! :try.setter? )
assert( ! :try?.setter? )
end
end
end
@@ -0,0 +1,16 @@
covers 'facets/symbol/succ'
test_case Symbol do
method :succ do
test do
:a.succ.assert == :b
:aaa.succ.assert == :aab
:"1".succ.assert == :"2"
end
end
end
@@ -0,0 +1,22 @@
covers 'facets/symbol/thrown'
test_case Symbol do
method :thrown? do
test "throws what is expected" do
assert( :a.thrown? { throw :a } )
end
test "throws something else" do
refute( :a.thrown? { throw :b } )
end
test "throws nothing at all" do
refute( :a.thrown? { } )
refute( :a.thrown? { true } ) # to exclude block's return value usage.
end
end
end
@@ -0,0 +1,14 @@
covers 'facets/symbol/variablize'
test_case Symbol do
method :variablize do
test do
:a.variablize.assert == "@a".to_sym
end
end
end