Changeset 92 for trunk/Forms
- Timestamp:
- Feb 3, 2022, 10:08:07 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormTest.pas
r91 r92 48 48 49 49 uses 50 UCore, UFormTestCase ;50 UCore, UFormTestCase, UContact; 51 51 52 52 { TFormTest } … … 119 119 with TestCases do begin 120 120 with TTestCaseLoadSave(AddNew('Load and save', TTestCaseLoadSave)) do begin 121 Input := 'BEGIN:VCARD'+ LineEnding +121 Input := VCardBegin + LineEnding + 122 122 'VERSION:2.1' + LineEnding + 123 123 'N:Surname;Name' + LineEnding + 124 124 'FN:Name Surname' + LineEnding + 125 'END:VCARD' + LineEnding; 125 VCardEnd + LineEnding; 126 Output := Input; 127 end; 128 with TTestCaseLoadSave(AddNew('Long text', TTestCaseLoadSave)) do begin 129 Input := VCardBegin + LineEnding + 130 'VERSION:2.1' + LineEnding + 131 'NOTE:This is some long test which is really multi-lined each line is on d' + LineEnding + 132 ' ifferent line so it is on multiple lines.' + LineEnding + 133 VCardEnd + LineEnding; 126 134 Output := Input; 127 135 end; 128 136 with TTestCaseLoadSave(AddNew('Multi-line', TTestCaseLoadSave)) do begin 129 Input := 'BEGIN:VCARD'+ LineEnding +137 Input := VCardBegin + LineEnding + 130 138 'VERSION:2.1' + LineEnding + 131 'NOTE:This is some long test which is really multi-lined\neach line\nis on' + LineEnding + 132 ' different\nline so it is on multiple\nlines.' + LineEnding + 133 'END:VCARD' + LineEnding; 139 'NOTE:First line\nsecond line\nempty line\n\nlast line' + LineEnding + 140 VCardEnd + LineEnding; 134 141 Output := Input; 135 142 end; … … 142 149 end; 143 150 with TTestCaseLoadSave(AddNew('Begin only', TTestCaseLoadSave)) do begin 144 Input := 'BEGIN:VCARD';151 Input := VCardBegin; 145 152 Output := ''; 146 153 end; 147 154 with TTestCaseLoadSave(AddNew('Missing end', TTestCaseLoadSave)) do begin 148 Input := 'BEGIN:VCARD'+ LineEnding +155 Input := VCardBegin + LineEnding + 149 156 'VERSION:2.1' + LineEnding + 150 157 'N:Surname;Name' + LineEnding + 151 158 'FN:Name Surname' + LineEnding; 159 Output := ''; 160 end; 161 with TTestCaseLoadSave(AddNew('Missing start', TTestCaseLoadSave)) do begin 162 Input := 'VERSION:2.1' + LineEnding + 163 'N:Surname;Name' + LineEnding + 164 'FN:Name Surname' + LineEnding + 165 VCardEnd + LineEnding; 152 166 Output := ''; 153 167 end;
Note:
See TracChangeset
for help on using the changeset viewer.