From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oA30CFIrHGT0/AAASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 11:34:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yOIGCFIrHGToAgEAG6o9tA (envelope-from ) for ; Thu, 23 Mar 2023 11:34:58 +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 91C4B353CE for ; Thu, 23 Mar 2023 11:34:57 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bEJuMRgi; 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=1679567698; 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=Jqe0gaUm1KHJATXCHoThI51WERQKmWRPKIDA8sK3l2Q=; b=aEkqvO54TKcz2JkI5rxUqX2fuRLI2ijoxKTYalMXhwHkXCyIMti5W8nTck2ASYPVRVA/zk Tof2AErjiro8PQkB8lph7WguQycPw4ich6qnSZBs4aRmdZ70kRrwWC3ZdOOliBuZJmxx+/ yJPUoZ0PMwmKtChWqOuirC1m351wCQRI8X3ZXSILHjNJomN4fCH+mAN1nSjNLp/y4YvE0C WedPZbAmoCvPuntsBNp+dBWfIG2tiQJ13S7fspaVeeCVmLkXsnBYhHPWP36q6Ouyobratf iJALZHAKQfCrgZQdLpbW0nOdUnZqkJklbI1ReHRTzGzzFaVfQgy7q13Oat8MBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679567698; a=rsa-sha256; cv=none; b=tZ6FWHa6n5p4+sdAK8Y3rk++r/HmeeCful7lrrlcGfVv/1k73QkFcRNJIozgdKpb9YAC+N 1EaDAy6BnBdu8GuL5ryYvlO/1bZK+3gVSEpDMKiSC92cr9SUsRXYLTXfjLMEDfb8ApPQmc eruYKExCgaJNos3aO3mop3INpV4h5JphFbRH1Zctt6/90EZ5ivOT39ZRsMYBOjdryf9khX uNH3KjtCTwupZIMUWECSXZtYu+qRyC5e8tcbNnxShb6SkVQojUnSd3Cf+SnbvCj0l/378O Ckh8aHgNOzEavlRK7fRy9G1K3Ckh9U13JbpkVjx3i0NoBAao0zLr/QclmBLsyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=bEJuMRgi; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfIGk-00068P-Fz; Thu, 23 Mar 2023 06:34:06 -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 1pfIGh-000674-QI for emacs-orgmode@gnu.org; Thu, 23 Mar 2023 06:34:03 -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 1pfIGf-0000su-KD for emacs-orgmode@gnu.org; Thu, 23 Mar 2023 06:34:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D52342400CC for ; Thu, 23 Mar 2023 11:33:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1679567638; bh=jgAdLMj5d3CNvSyyCV8Ddl+XiSVvAqY2CoPRIdCLnqM=; h=From:To:Cc:Subject:Date:From; b=bEJuMRgidHLxGIKCtODaK+Rtb+IkarNOGrSWzWv9JJNwtht5BpsEYoU291WyMoG7Z s6cP+XxxYWd6y3qrc+ogUnA217+wrh/FIQK4OypzrSNQ8rEY0KKFSgA1BekPWiNUQW 0F582WT3CNM31DrTsNyxIys9XGX2Aqe9afPqgcd8JDYdzCoaFtt+OAMjj+sQKORU+0 koLKuqXRCzcnIKlbu4ypb0H2iZZWv9pM7YA2yOqohK+dYN0mLalnxtkTNvbayvNw7r H1/GPrwxccxvLhapLq3FJXOWqGbtPIFQXrRE5Bsxo0/hGVewB+tj1p18eLkz8yu6GB uHlhHonmsLdeA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pj1sd0Prdz9rxK; Thu, 23 Mar 2023 11:33:56 +0100 (CET) From: Ihor Radchenko To: Bruno Barbier Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Add tests for ob-haskell (GHCi) In-Reply-To: <6416d214.5d0a0220.d9c1.54aa@mx.google.com> References: <6416d214.5d0a0220.d9c1.54aa@mx.google.com> Date: Thu, 23 Mar 2023 10:35:55 +0000 Message-ID: <87pm8zah6c.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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_H2=-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: X-Migadu-Queue-Id: 91C4B353CE X-Spam-Score: -6.86 X-Migadu-Spam-Score: -6.86 X-Migadu-Scanner: scn0.migadu.com 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-Country: US X-Migadu-Flow: FLOW_IN X-TUID: ucDTEB4RNsbM Bruno Barbier writes: > +(ert-deftest ob-haskell/let-multilines-1 () > + "Local definitions on multiple lines." > + :expected-result :failed > + (should (equal 6 (test-ob-haskell-ghci "" " > +:{ > + let { x=3D2 > + ; y=3D3 > + } > + in x*y > +:} > +")))) Part of the problem is that haskell-mode appears to use non-standard prompt: comint-prompt-regexp: ^[[:alnum:].*_() |=CE=BB]*> \|^=CE=BB?> Output: ghci| ghci| ghci| ghci| ghci| 6 Note "|". We may want to either report this upstream or modify `org-babel-interpret-haskell' further where it extends `comint-prompt-regexp'. > +(ert-deftest ob-haskell/ghci-info () > + "The ghci meta command ':info' ." > + (should (equal "repeat :: a -> [a] -- Defined in =E2=80=98GHC.List= =E2=80=99" > + (test-ob-haskell-ghci ":results output" ":info repeat")= ))) On my system, the output contains different number of spaces in "[a]-- ". It appears to be system-dependent. Looks like test's fault. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at