2
require 'rdoc/markup/formatter_test_case'
3
require 'rdoc/markup/to_tt_only'
4
require 'minitest/autorun'
6
class TestRDocMarkupToTtOnly < RDoc::Markup::FormatterTestCase
13
@to = RDoc::Markup::ToTtOnly.new
17
assert_empty @to.end_accepting
21
assert_equal [], @to.res
25
assert_empty @to.end_accepting
28
def accept_list_end_bullet
32
def accept_list_end_label
36
def accept_list_end_lalpha
40
def accept_list_end_note
44
def accept_list_end_number
48
def accept_list_end_ualpha
52
def accept_list_item_end_bullet
56
def accept_list_item_end_label
60
def accept_list_item_end_lalpha
64
def accept_list_item_end_note
68
def accept_list_item_end_number
72
def accept_list_item_end_ualpha
76
def accept_list_item_start_bullet
80
def accept_list_item_start_label
84
def accept_list_item_start_lalpha
88
def accept_list_item_start_note
92
def accept_list_item_start_number
96
def accept_list_item_start_ualpha
100
def accept_list_start_bullet
104
def accept_list_start_label
108
def accept_list_start_lalpha
112
def accept_list_start_note
116
def accept_list_start_number
120
def accept_list_start_ualpha
125
assert_empty @to.end_accepting
129
assert_empty @to.end_accepting
133
assert_empty @to.end_accepting
137
assert_empty @to.end_accepting
141
assert_equal %w[hi], @to.end_accepting
145
assert_empty @to.end_accepting
149
assert_empty @to.end_accepting
153
assert_empty @to.end_accepting
157
assert_empty @to.end_accepting
161
assert_empty @to.end_accepting
164
def accept_heading_indent
165
assert_empty @to.end_accepting
169
assert_empty @to.end_accepting
172
def accept_heading_suppressed_crossref
173
assert_empty @to.end_accepting
176
def accept_list_item_start_note_2
177
assert_equal [nil, 'teletype', nil], @to.res
180
def accept_paragraph_b
181
assert_empty @to.end_accepting
184
def accept_paragraph_i
185
assert_empty @to.end_accepting
188
def accept_paragraph_indent
189
assert_empty @to.end_accepting
192
def accept_paragraph_plus
193
assert_equal %w[teletype], @to.end_accepting
196
def accept_paragraph_star
197
assert_empty @to.end_accepting
200
def accept_paragraph_underscore
201
assert_empty @to.end_accepting
204
def accept_paragraph_wrap
205
assert_empty @to.end_accepting
208
def accept_rule_indent
209
assert_empty @to.end_accepting
212
def accept_verbatim_indent
213
assert_empty @to.end_accepting
216
def accept_verbatim_big_indent
217
assert_empty @to.end_accepting
221
assert_empty @to.end_accepting
225
assert_empty @to.end_accepting