lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 9a78453 7/9: Fix defect introduced 20160517T2


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 9a78453 7/9: Fix defect introduced 20160517T2303: tests not updated
Date: Wed, 15 Feb 2017 20:26:59 -0500 (EST)

branch: master
commit 9a78453992f92e77e6e9512b39abd465b875c0ba
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Fix defect introduced 20160517T2303: tests not updated
    
    Semicolons are inserted to redelimit pasted text. Since 20160517T2303
    they are left intact, rather than guessing that end users prefer them
    to be removed from the end. UponTestPasting() has now been updated
    accordingly, as it should have been at that time.
---
 skeleton.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/skeleton.cpp b/skeleton.cpp
index 5a9c1a3..e65d734 100644
--- a/skeleton.cpp
+++ b/skeleton.cpp
@@ -1095,17 +1095,17 @@ void Skeleton::UponTestPasting(wxCommandEvent&)
     ClipboardEx::SetText("1\r\n2\r\n3\r\n");
     t.SetSelection(-1L, -1L);
     t.Paste();
-    if("1;2;3" != t.GetValue())
+    if("1;2;3;" != t.GetValue())
         {
-        warning() << "'1;2;3' != '" << t.GetValue() << "'" << LMI_FLUSH;
+        warning() << "'1;2;3;' != '" << t.GetValue() << "'" << LMI_FLUSH;
         }
 
     ClipboardEx::SetText("X\tY\tZ\t");
     t.SetSelection(-1L, -1L);
     t.Paste();
-    if("X;Y;Z" != t.GetValue())
+    if("X;Y;Z;" != t.GetValue())
         {
-        warning() << "'X;Y;Z' != '" << t.GetValue() << "'" << LMI_FLUSH;
+        warning() << "'X;Y;Z;' != '" << t.GetValue() << "'" << LMI_FLUSH;
         }
 
     z->Destroy();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]