From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uC9ZBbM39WHkYAAAgWs5BA (envelope-from ) for ; Sat, 29 Jan 2022 13:48:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KB31AbM39WGxEwEAauVa8A (envelope-from ) for ; Sat, 29 Jan 2022 13:48:51 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 90C1E15218 for ; Sat, 29 Jan 2022 13:48:50 +0100 (CET) Received: from localhost ([::1]:45820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDn9s-0004hX-N4 for larch@yhetil.org; Sat, 29 Jan 2022 07:48:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDm3x-00051R-Qi for emacs-orgmode@gnu.org; Sat, 29 Jan 2022 06:38:37 -0500 Received: from [2607:f8b0:4864:20::102e] (port=46969 helo=mail-pj1-x102e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDm3w-000175-Br; Sat, 29 Jan 2022 06:38:37 -0500 Received: by mail-pj1-x102e.google.com with SMTP id oa14-20020a17090b1bce00b001b61aed4a03so7567462pjb.5; Sat, 29 Jan 2022 03:38:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FpD9q90ebAij0c6XpGGrf9DLI7MZr22fZfLrRGtbve0=; b=T8A4oLU95cX2VdFEEBVwtDkMZYaikXb494VUrmpzU3Dd3ig2Be9vuXrBkjlfkSW2Pu +uxba6hORs31NnmSvQNSV1hqRksrc/D00f2KwwR1hdotSWyKoU2kLa6Vzeya67i3Bccc Fzt7C8PJV+Ddf1D6gMG+h2gThayj748TVd6RtI/2P2KJHEXl48YbhH3jilT3/wK+F7Rn nEeRiJyvyjo0VbWXOgv1kHQDst+36n1lhDrpfQ4wDL8rjLB4qOPX88qHhxGQWVUUBKwW rXYmj/Vem8nyMWkLoIousQimUu3wxmHnuXaSQFMFXrpP5PqBKzl1nnqJiNaXkMmfY7UO vkzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FpD9q90ebAij0c6XpGGrf9DLI7MZr22fZfLrRGtbve0=; b=o0OSslM8lXj10mfGhPSz+UnuJ1oIodIb/66HrurGghO1l/tjdeXrGGW79VXMIXrrIA EZmDoqWFyFas9WFk/PRqs6QuQktV/qWLgpG4JruB6gHBUICO2pgHTfr5Ezur9Kh6T7L1 JtCcAmQwidi7EdA5tio7xDT1c8dlHVz36ryE0K0ZvElY42AvdvlVVJdoUWu/buGh+0Ck NK9EogasU/RHCLAt/5KdlcbEV79KCqPHLvPMcAarnLENm765rS3HLQLHObToheJckOjH 1GccFp2n2ZCsCjEBz2H30ispbCP3TBOvtgE+nm6cUQGXjDmbYFIlDt9my3vdrwPeHrkV aKkA== X-Gm-Message-State: AOAM5334Td/mpOdpXaVf47E0POcGGeAR8g+GRJUPF5hd6o8dwNkFdn4Q fVTSyh8ovv5oSOC1Q9cxU4v/E4Jib+CAidPk X-Google-Smtp-Source: ABdhPJwOON/l/vnW0u+Ke2VTEXSpQuKpvbVzUI8LH8vOM4gRGd4vm1eYoFenc2/8Dh/JJDUv2Lz8LQ== X-Received: by 2002:a17:902:904a:: with SMTP id w10mr13198197plz.114.1643456314595; Sat, 29 Jan 2022 03:38:34 -0800 (PST) Received: from localhost ([209.95.60.92]) by smtp.gmail.com with ESMTPSA id s14sm13023355pfk.174.2022.01.29.03.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 03:38:34 -0800 (PST) From: Ihor Radchenko To: Bastien , Kyle Meyer , Nicolas Goaziou , Karl Voit , Christian Heinrich , emacs-orgmode@gnu.org Subject: [PATCH 32/35] test-org/string-width: Add tests for strings with prefix properties Date: Sat, 29 Jan 2022 19:38:24 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: <87y2cvloay.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.34.1" Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102e (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102e.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ihor Radchenko Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643460530; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=fk3SRATOYOaWHnMMi4XTd8uMLw7L4CcbASsaLlyqbM8=; b=t1HRJ6vRHxcveOmCPL01i5cRk7M9fXYpZqGA/mWNZ/dh/aXj04woBNTC3Pdtw+Jofdc5n9 dpfQYMGHVncxQCupXcJ1C2sX2zDSVjW8GcB/Wg7nVmHKhL/gUvj5gm7bVY5uLXiXb8X7+Y CEmXHqQU2YPeDw57sruMlhviknw1p5esNBx5hLh2mCYoPXU3E3I7kG7JeIR8w6WnqMrUYH khFUeH8gfC7CRqRXZ5k1+8r19vzz7whAXSLX/oy63MhGObSutCJdsd5LPsjV4tPSWGkZUV 88EEKwlcDJU1cszHJSqNh0xdN2yb2Aq5aeeWz10Ww0v1plYF9I7Swkkt1ryvog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643460530; a=rsa-sha256; cv=none; b=jyomKWvZACRh9LB0mrDvpTeQvtbjwnAvEGP682NtPnAAwsmYmoiDRXzCL2F9ocqCXyAEXL QgAa2LgGyRyQxbowFO1scwkYiZvDSIf8EDpuKTGCezLhNkoSzC9Aq85BNtaYFZdJK5ogYh a+JcEOZXclhvF5M2cRhhFeB0Ly/wUaluXpJQpa4Xq9XeAjFWAHxI5V4DVXo+KZIZHzziyb Y61ZYwtPusQwvEWZoqXTptYzqFwHRmlWGSQuEN2W4yXCsAuYT1TePfnIWuchDSr7KIxg1i HKW+0dvS3uGaqDLOdtquScVkicHK4dyLnZu3DvK2bhJYrS8w49BZiAxWzbE/zQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=T8A4oLU9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=T8A4oLU9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 90C1E15218 X-Spam-Score: -1.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: /kGCa6kGFo4D This is a multi-part message in MIME format. --------------2.34.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit --- testing/lisp/test-org-macs.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --------------2.34.1 Content-Type: text/x-patch; name="0032-test-org-string-width-Add-tests-for-strings-with-pre.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0032-test-org-string-width-Add-tests-for-strings-with-pre.patch" diff --git a/testing/lisp/test-org-macs.el b/testing/lisp/test-org-macs.el index 6a7ccea3c..05cef1281 100644 --- a/testing/lisp/test-org-macs.el +++ b/testing/lisp/test-org-macs.el @@ -65,7 +65,11 @@ (ert-deftest test-org/string-width () (should (= 4 (org-string-width #("123" 1 2 (display #("abc" 1 2 (invisible t))))))) ;; Test `space' property in `display'. - (should (= 2 (org-string-width #(" " 0 1 (display (space :width 2))))))) + (should (= 2 (org-string-width #(" " 0 1 (display (space :width 2)))))) + ;; Test `wrap-prefix' property. + (should (= 2 (org-string-width #("ab" 0 2 (wrap-prefix " "))))) + ;; Test `line-prefix' property. + (should (= 2 (org-string-width #("ab" 0 2 (line-prefix " ")))))) ;;; Regexp --------------2.34.1--