LEFT | RIGHT |
1 // Copyright (C) 2016 and later: Unicode, Inc. and others. | 1 // Copyright (C) 2016 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html | 2 // License & terms of use: http://www.unicode.org/copyright.html |
3 /******************************************************************** | 3 /******************************************************************** |
4 * COPYRIGHT:· | 4 * COPYRIGHT:· |
5 * Copyright (c) 1997-2016, International Business Machines Corporation and | 5 * Copyright (c) 1997-2016, International Business Machines Corporation and |
6 * others. All Rights Reserved. | 6 * others. All Rights Reserved. |
7 ********************************************************************/ | 7 ********************************************************************/ |
8 | 8 |
9 #include "ustrtest.h" | 9 #include "ustrtest.h" |
10 #include "unicode/appendable.h" | 10 #include "unicode/appendable.h" |
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2183 s5.moveFrom(s5); | 2183 s5.moveFrom(s5); |
2184 s6.moveFrom(s6); | 2184 s6.moveFrom(s6); |
2185 s7.moveFrom(s7); | 2185 s7.moveFrom(s7); |
2186 // Simple copy assignment must work. | 2186 // Simple copy assignment must work. |
2187 UnicodeString simple = UNICODE_STRING_SIMPLE("simple"); | 2187 UnicodeString simple = UNICODE_STRING_SIMPLE("simple"); |
2188 s1 = s6 = s4 = s7 = simple; | 2188 s1 = s6 = s4 = s7 = simple; |
2189 if(s1 != simple || s4 != simple || s6 != simple || s7 != simple) { | 2189 if(s1 != simple || s4 != simple || s6 != simple || s7 != simple) { |
2190 errln("UnicodeString copy after self-move did not work"); | 2190 errln("UnicodeString copy after self-move did not work"); |
2191 } | 2191 } |
2192 } | 2192 } |
LEFT | RIGHT |