@@ -23,7 +23,10 @@ def teardown
23
23
# Tests that do no more than parse an example response and assert the result
24
24
# data has the correct values have been moved to yml test fixtures.
25
25
#
26
- # TODO: add instructions for how to quickly add or update yaml tests
26
+ # The simplest way to add or update new test cases is to add only the test
27
+ # name and response string to the yaml file, and then re-run the tests. The
28
+ # test will be marked pending, and the parsed result will be serialized and
29
+ # printed on stdout. This can then be copied into the yaml file.
27
30
############################################################################
28
31
# Core IMAP, by RFC9051 section (w/obsolete in relative RFC3501 section):
29
32
generate_tests_from fixture_file : "rfc3501_examples.yml"
@@ -93,27 +96,4 @@ def teardown
93
96
# response data, should still use normal tests, below
94
97
############################################################################
95
98
96
- # todo: move this to response data tests file
97
- # it's testing the mapping fn, not the parsing.
98
- def test_uidplus_copyuid__uid_mapping
99
- parser = Net ::IMAP ::ResponseParser . new
100
- response = parser . parse (
101
- "A004 OK [copyUID 9999 20:19,500:495 92:97,101:100] Done\r \n "
102
- )
103
- code = response . data . code
104
- assert_equal (
105
- {
106
- 19 => 92 ,
107
- 20 => 93 ,
108
- 495 => 94 ,
109
- 496 => 95 ,
110
- 497 => 96 ,
111
- 498 => 97 ,
112
- 499 => 100 ,
113
- 500 => 101 ,
114
- } ,
115
- code . data . uid_mapping
116
- )
117
- end
118
-
119
99
end
0 commit comments