@@ -25,11 +25,14 @@ def teardown
25
25
#
26
26
# TODO: add instructions for how to quickly add or update yaml tests
27
27
############################################################################
28
- # Core IMAP specs , by RFC9051 section (w/ obsolete listed last ):
28
+ # Core IMAP, by RFC9051 section (w/obsolete in relative RFC3501 section ):
29
29
30
30
# §7.3.2: NAMESPACE response (also RFC2342)
31
31
generate_tests_from fixture_file : "namespace_responses.yml"
32
32
33
+ # RFC3501 §7.2.5: SEARCH response (obsolete in IMAP4rev2):
34
+ generate_tests_from fixture_file : "search_responses.yml"
35
+
33
36
# §7.5.2: FETCH response, BODYSTRUCTURE msg-att
34
37
generate_tests_from fixture_file : "body_structure_responses.yml"
35
38
@@ -68,34 +71,6 @@ def test_resp_text_code
68
71
assert_equal "CLOSED" , response . data . code . name
69
72
end
70
73
71
- def test_search_response
72
- parser = Net ::IMAP ::ResponseParser . new
73
- response = parser . parse ( <<EOF . gsub ( /\n / , "\r \n " ) )
74
- * SEARCH
75
- EOF
76
- assert_equal [ ] , response . data
77
- response = parser . parse ( <<EOF . gsub ( /\n / , "\r \n " ) )
78
- * SEARCH 1
79
- EOF
80
- assert_equal [ 1 ] , response . data
81
- response = parser . parse ( <<EOF . gsub ( /\n / , "\r \n " ) )
82
- * SEARCH 1 2 3
83
- EOF
84
- assert_equal [ 1 , 2 , 3 ] , response . data
85
- end
86
-
87
- def test_search_response_of_yahoo
88
- parser = Net ::IMAP ::ResponseParser . new
89
- response = parser . parse ( <<EOF . gsub ( /\n / , "\r \n " ) )
90
- * SEARCH 1\s
91
- EOF
92
- assert_equal [ 1 ] , response . data
93
- response = parser . parse ( <<EOF . gsub ( /\n / , "\r \n " ) )
94
- * SEARCH 1 2 3\s
95
- EOF
96
- assert_equal [ 1 , 2 , 3 ] , response . data
97
- end
98
-
99
74
def test_msg_att_extra_space
100
75
parser = Net ::IMAP ::ResponseParser . new
101
76
response = parser . parse ( <<EOF . gsub ( /\n / , "\r \n " ) )
@@ -194,14 +169,6 @@ def test_id
194
169
assert_equal ( nil , response . data . fetch ( "support-url" ) )
195
170
end
196
171
197
- # [Bug #10112]
198
- def test_search_modseq
199
- parser = Net ::IMAP ::ResponseParser . new
200
- response = parser . parse ( "* SEARCH 87216 87221 (MODSEQ 7667567)\r \n " )
201
- assert_equal ( "SEARCH" , response . name )
202
- assert_equal ( [ 87216 , 87221 ] , response . data )
203
- end
204
-
205
172
# [Bug #13649]
206
173
def test_status
207
174
parser = Net ::IMAP ::ResponseParser . new
0 commit comments