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,68 @@
covers 'facets/tuple'
test_case Tuple do
class_method :[] do
test "tuples with same content are the same object" do
t1 = Tuple[1,2,3]
t2 = Tuple[1,2,3]
t1.object_id.assert == t2.object_id
end
end
method :< do
test do
t1 = Tuple[1,2,3]
t2 = Tuple[2,4,5]
t1.assert < t2
end
end
method :> do
test do
t1 = Tuple[1,2,3]
t2 = Tuple[2,4,5]
t2.assert > t1
end
end
method :to_a do
test do
t1 = Tuple[1,2,3]
a1 = t1.to_a
assert( Array === a1 )
end
end
method :<< do
test do
t1 = Tuple[1,2,3]
t1 = t1 << 4
t1.assert.is_a? Tuple
t2 = Tuple[1,2,3,4]
t1.object_id.assert == t2.object_id
end
end
end
test_case String do
method :to_t do
test do
t1 = "1.2.3".to_t
t1.assert.is_a? Tuple
t2 = Tuple[1,2,3]
t1.object_id.assert == t2.object_id
end
test do
t1 = "1.2.3a".to_t
t1.assert.is_a? Tuple
t2 = Tuple[1,2,'3a']
t1.assert == t2
t1.object_id.assert == t2.object_id
end
end
end