Skip to content

Commit 2853172

Browse files
committed
.
1 parent c6f2633 commit 2853172

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

graphics/lib/sevgi/graphics/mixtures/underscore.rb

-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ def Comment(comment)
1212
_ Content.verbatim("<!-- #{comment} -->")
1313
end
1414

15-
def Mark(begining: "BEGIN", ending: "END")
16-
Comment(begining)
17-
yield
18-
Comment(ending)
19-
end
20-
2115
def Ancestral
2216
{}.tap do |result|
2317
Root.Traverse { |element| result.merge!(element[:_]) if element.has?(:_) }

graphics/test/graphics/mixtures/underscore_test.rb

-26
Original file line numberDiff line numberDiff line change
@@ -53,32 +53,6 @@ def test_underscore_comment
5353

5454
assert_equal(expected, actual)
5555
end
56-
57-
def test_underscore_mark
58-
expected = <<~SVG.chomp
59-
<svg>
60-
<!-- BEGIN -->
61-
<text>
62-
You are
63-
<tspan>not</tspan>
64-
a banana
65-
</text>
66-
<!-- END -->
67-
</svg>
68-
SVG
69-
70-
actual = SVG DOC do
71-
Mark do
72-
text do
73-
_ "You are"
74-
tspan "not"
75-
_ "a banana"
76-
end
77-
end
78-
end.Render
79-
80-
assert_equal(expected, actual)
81-
end
8256
end
8357
end
8458
end

0 commit comments

Comments
 (0)