From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YBllMHWCM2aQ9wAAe85BDQ:P1 (envelope-from ) for ; Thu, 02 May 2024 14:09:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YBllMHWCM2aQ9wAAe85BDQ (envelope-from ) for ; Thu, 02 May 2024 14:09:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oezIe91I; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714651765; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Y1GhuzPlq/D9DLMS5AG7l6mVpjFXo1CUCcgh+wm7fRc=; b=soO7gKzqo056mZfTIbp0FC+4OczZx/a+ClfLRBGcG+h5LFlsDCJDodKhErn1IjsD7ypio5 1sIeRpK5fQJ9KGSFpx4dAvC4CuZtUsNCjyMy4BytKwxXPO6vDqnGaJdMVOTISZCc7E2uvo AKKGnYu24cK0Mi0HdnvWC7Bj4WTK920XFsbnvEFCz7l365WsV6xhFGQCA+jWFwBcrPJ3AX 4JTMPu6dQsvYv4fEyBKICzDcGclWNEykPzviviLsDJxj8aEDnb7SlIcaOMziFJ0I6/8Y8p zHNUwDDME0lAJu5MwuVSsmERHTeqsUd1D6VzbFErIckQFHQx2j3K8edSLL9tLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oezIe91I; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714651765; a=rsa-sha256; cv=none; b=OpydQebykorgrnFknHQHZBvpNELJMRPcMQQv8DchalkaHnNUnyd9rLffcNeXwnMf6FnYLy 7/47RQfQcpuCNCDR/1lxd1rITMIoDTy9MSGYGSWW9xkQueJK72mVE7xc2q13/Q9kc3TgSZ jUS+WLupGvQ04I3IUVWa4288Mo6xobDjNXvg4icjnM6f7Tzv//uy8rgYq3hDSsFS+p5Jl9 vNNvrTVkJq6zMQAJ0Q+gmdCIXRWPeh57a6RXqeTD+QioFEBpdPOKqGo/1JOTjruT4QWWDl fcY73bcMz3Oog9SU5fxzhV3chaV9wzIU9YZh9MMuer+Y3t5feVoybf7o7F5/eg== 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 609C93E7FF for ; Thu, 2 May 2024 14:09:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2VEs-0001Ci-0l; Thu, 02 May 2024 08:08:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2VEo-0001Aq-Af for emacs-orgmode@gnu.org; Thu, 02 May 2024 08:08:34 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2VEk-0008Pv-M5 for emacs-orgmode@gnu.org; Thu, 02 May 2024 08:08:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2EAF6240027 for ; Thu, 2 May 2024 14:08:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1714651708; bh=9G3DMCtliu6NJxJUsRn2s/RFfU5BcQMLg2yP1ZmOp98=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=oezIe91INSAgl/iWWQIIqyCscABqbuCjjdml1i9uex0bN+grlmAiRT2sKAnRF4qbS pKTDWxQriw+49bRl+X89nmaVzifswZl5TtZCJ3Yd/9/QJ6H+z5Br/hbfFkg1zJ3keI Cp8DYyNj4XPkun46X2aX82NOmLU2X7ehyNn5SvVn71wFDEUuv+qxvSIcFUKlpPtC/H 3P5HBfwouJb73tQ0TPCos5L5ucbTaYN2sG/xqkmQ0V3grczealGuhvvabtC1WozADB XANcDDf0qiRWCVqqpwJrUNSulXEXyrMrfvbs+V+6GVPDrdd5DOzkxi2tv6mhc4Ck9S sE6D+DR42JgzA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VVXlG43bkz6tyn; Thu, 2 May 2024 14:08:26 +0200 (CEST) From: Ihor Radchenko To: Alexander Adolf Cc: emacs-orgmode@gnu.org Subject: Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM In-Reply-To: <91dfeb0fed1a1fe0564e5eb9b95a409d@condition-alpha.com> References: <486d2b818b62c71b3f307305c06c4318@condition-alpha.com> <871q7cypxl.fsf@localhost> <00aa9bf72dc93f6554bdd236fdfba192@condition-alpha.com> <87y19hbb05.fsf@localhost> <8b72386d118136210f27b553f0a13066@condition-alpha.com> <87cyqtyzgt.fsf@localhost> <91dfeb0fed1a1fe0564e5eb9b95a409d@condition-alpha.com> Date: Thu, 02 May 2024 12:09:37 +0000 Message-ID: <8734r0beke.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.60 X-Spam-Score: -9.60 X-Migadu-Queue-Id: 609C93E7FF X-Migadu-Scanner: mx13.migadu.com X-TUID: QchzFYijFZ4f --=-=-= Content-Type: text/plain Alexander Adolf writes: > 4 unexpected results: > FAILED ob-calc/matrix-inversion ((should (equal "[[-1, 0.625, -0.125], [0.25, -0.5, 0.25], [0.5, 0.125, -0.125]]" (org-babel-execute-src-block))) :form (equal "[[-1, 0.625, -0.125], [0.25, -0.5, 0.25], [0.5, 0.125, -0.125]]" "[[-1, 625e-3, -125e-3], [250e-3, -500e-3, 250e-3], [500e-3, 125e-3, -125e-3]]") :value nil :explanation (arrays-of-different-length 63 77 "[[-1, 0.625, -0.125], [0.25, -0.5, 0.25], [0.5, 0.125, -0.125]]" "[[-1, 625e-3, -125e-3], [250e-3, -500e-3, 250e-3], [500e-3, 125e-3, -125e-3]]" first-mismatch-at 6)) Will the failure disappear if you try the attached patch? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-ob-calc-matrix-inversion-Force-calc-float-format-in-.patch >From fb317be318aaf32104e9334d34813681c26ac240 Mon Sep 17 00:00:00 2001 Message-ID: From: Ihor Radchenko Date: Thu, 2 May 2024 15:07:12 +0300 Subject: [PATCH] ob-calc/matrix-inversion: Force `calc-float-format' in the test * testing/lisp/test-ob-calc.el (ob-calc/matrix-inversion): When testing, make sure that calc output follows the expected format. This is needed on MacOS where Emacs defaults are not exactly the same. Reported-by: Alexander Adolf Link: https://list.orgmode.org/orgmode/91dfeb0fed1a1fe0564e5eb9b95a409d@condition-alpha.com/ --- testing/lisp/test-ob-calc.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/testing/lisp/test-ob-calc.el b/testing/lisp/test-ob-calc.el index 6d6ca104d..e5f2cee0b 100644 --- a/testing/lisp/test-ob-calc.el +++ b/testing/lisp/test-ob-calc.el @@ -59,7 +59,14 @@ (ert-deftest ob-calc/matrix-inversion () inv(a) #+END_SRC " (should (equal "[[-1, 0.625, -0.125], [0.25, -0.5, 0.25], [0.5, 0.125, -0.125]]" - (org-babel-execute-src-block))))) + (let ((calc-float-format '(float 0))) + ;; ;; Make sure that older Calc buffers are not present. + (save-current-buffer + (when (ignore-errors (calc-select-buffer)) + (kill-buffer))) + ;; Now, let-bound `calc-float-format' will take + ;; effect. + (org-babel-execute-src-block)))))) (ert-deftest ob-calc/matrix-algebra () "Test of simple matrix algebra." -- 2.44.0 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--