Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
roktas committed Sep 14, 2024
1 parent c6f2633 commit 2853172
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
6 changes: 0 additions & 6 deletions graphics/lib/sevgi/graphics/mixtures/underscore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ def Comment(comment)
_ Content.verbatim("<!-- #{comment} -->")
end

def Mark(begining: "BEGIN", ending: "END")
Comment(begining)
yield
Comment(ending)
end

def Ancestral
{}.tap do |result|
Root.Traverse { |element| result.merge!(element[:_]) if element.has?(:_) }
Expand Down
26 changes: 0 additions & 26 deletions graphics/test/graphics/mixtures/underscore_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,32 +53,6 @@ def test_underscore_comment

assert_equal(expected, actual)
end

def test_underscore_mark
expected = <<~SVG.chomp
<svg>
<!-- BEGIN -->
<text>
You are
<tspan>not</tspan>
a banana
</text>
<!-- END -->
</svg>
SVG

actual = SVG DOC do
Mark do
text do
_ "You are"
tspan "not"
_ "a banana"
end
end
end.Render

assert_equal(expected, actual)
end
end
end
end
Expand Down

0 comments on commit 2853172

Please sign in to comment.