From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30758 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: TDD for Lua filters Date: Fri, 17 Jun 2022 22:08:11 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34630"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRB5HWWOKQMGQE5F6KFRI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jun 18 00:08:56 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f61.google.com ([209.85.167.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o2K9A-0008rN-Pb for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 18 Jun 2022 00:08:56 +0200 Original-Received: by mail-lf1-f61.google.com with SMTP id c5-20020a056512238500b0047954b68297sf2979358lfv.3 for ; Fri, 17 Jun 2022 15:08:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655503736; cv=pass; d=google.com; s=arc-20160816; b=aOuxkXBj7oE+4wdoL1KcnK7tklcY1L5e/r+QFaOd4hE/Mv7ngI+RiFX+Qx6AyPUeag A991fSrHqRp/6tkKLAtB0IR5ULfO1mMkyQqs7dRTkVQ+FGsy6oEhyaomNGOpaHUYrABR Y1SBTV0lIuBA81ih4KYExAaZGx3E9jSjnAcuWqOn7F/r1rOMKT5rRMM/uMn/Sw+a1scl Fc2fGW1mchpaAxRVcTamt8lyVIzaN50eIIoafxEBaazKV6XbySvUy5gIEmWB+Q9ZWOn8 gvhh6LNu6mgT6mWjrutEdFIv3r0pP0I/X3wzvnuS2NxXQeyuqBJwJaquaMDFe/SiB0nk x+EA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=F+fM3OZsiOx7gW2fngKCRUYBluySQ24vfNjDZj7OdDc=; b=08U5N07/mpfoUPhXH1fy/FlmrBrIkcTyBDxzmrBw/uMYV+7+u2FWhBBw9VRAWiD7GA E6pnRkiqXZmhTUPLJcY5RwsaodOGuC8jK/cYybEh1Dwc4eKjvjhsIDo7XNdqylYgNkUI chM+nWSxO851VcLwU1Ml4gjvbWCcUDi2qmnl1tabo9WRKN97ZjJxG3ElffNA8OfqwIy/ sovALr83hwckzDVa08M2syDH2Kh6imcIQwRNwWHTbT4ZU/ztCzOsz1wCaB6rFHb6aT5G zFIrllYDYzrg4OGdlGmJOusrnX30qOBT3wvH2+RLrzDqJObnPvWPbVyXzqhubotzeLPF cBKQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=aUTvCJHz; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=F+fM3OZsiOx7gW2fngKCRUYBluySQ24vfNjDZj7OdDc=; b=QY3NUOgBsLc+WYWE4JZjBKxDKJ7qhhD22yTAuunLXJSME8t6wbnMO0GvEn2uqavP77 EqKgad5ZzTPsOaGRwer90eERHYWpG7eAf51CJBKcxhnE/UUVnjLWrz+mIoUj58YdRFGv Zfuwf7cz4lilMnXPW1VWN3bf3nwza/AoRTx9BnrLB0r5Ps5ixH2eWPQrndQMLyd83KPK tRR8AVduxlRvFUbh3xTGRNZ5vvZkl6xMjcOwJwM/kVa/AHRBlGfreqyKcsE0wQA+NTp6 bNoRwy7jYRDVhLsKy8u1qKUrTvYdGOq+2djYoTWO7+WTVQJDKZTs31aJoLR24Nich/1+ ROcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=F+fM3OZsiOx7gW2fngKCRUYBluySQ24vfNjDZj7OdDc=; b=0zXUs4Cy05VE+fTl8YM8hO3LSXHAhmaKb7B+w8glb6YUCrJATj0Z2FsQrkrZh3ft6t nsJmJBFzcxzxIeBTcHxpSewtw/WCNV6BeaaB6EOvNRPJPC/EzPz5JEYteJMbksQymG8c zYV6kWaM+k0gDfr+2re+sa4xJJNPRo+OipvevfZk3Lx2YmpePweQoHGS2gGD+WTDBFVO NOMOzjlI0u1PhxON2jXiWx4zrErugBG5f5ZhfJb4A6lt/xlfF13sh0ZmG5pw8LQKQNlX WNwtFhHbus/i7d5b+aJSDHR4iXOyAZtIk/ahDbLpPmYX Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8/lT6zFqfGxGrkZABSyVkbDmRHiKG0iNxnagz67zAlLD93hdoJ 9F8R6YG+qqiLI9K33ph5jFc= X-Google-Smtp-Source: AGRyM1vJUhYQOtSMGrynx8v2LSIm6WdnCNrXTjx+g9b0B82XMMgFimWf47+ahh8DnR7jqF5Uvj4Zbw== X-Received: by 2002:ac2:490d:0:b0:479:1568:ed46 with SMTP id n13-20020ac2490d000000b004791568ed46mr6638645lfi.569.1655503736202; Fri, 17 Jun 2022 15:08:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:bf11:0:b0:24a:fdc1:7af4 with SMTP id c17-20020a2ebf11000000b0024afdc17af4ls1011618ljr.1.gmail; Fri, 17 Jun 2022 15:08:51 -0700 (PDT) X-Received: by 2002:a05:651c:1544:b0:255:9d39:6cc0 with SMTP id y4-20020a05651c154400b002559d396cc0mr6002371ljp.45.1655503731462; Fri, 17 Jun 2022 15:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655503731; cv=none; d=google.com; s=arc-20160816; b=dFCW+Am8oickeTaS8U+78XlI8ytf0o4WifsfzAQ+L47LX56hCTPNNRP9AZucGF4uja NK/IOpJsOmzZhpJjkPTVqUJA95EYR7SSFMDMr/RG4T+NuimDjE4KQ+c4v/4dCxOBTW+E t3sIiiufP001jkC+4SAkH0hUAK+kGyq6wnZdUDKVn5V4EMLDwcfbhH0FO47EXPyQpa/o cVp5jKsnk0UsVOk7gti3eQYjy0X6BH9yiQ4PHwcNNur7ZqU2AbiWITUUz8HkdQEXxVNO x00ZKbBAO4gkNM6bF7MoDwJ7ItK0WlkAhf13s9cZT+OZoXDIgqZMsNLAF3loibvHu4pP QjHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=Oktibs5EEK1ry8EyAaUp+UB6zwsZT3ippAMmyAOf2dk=; b=yJZ0w3Bp0KJDopbtUaW63nwJoIesmoOwCuOveHA9bJOSh7HHl0OoKovAYJx9IU12Ma kyGxcehPmx3y1K7eOSKko/Qx8y3LymqcEJ2GRxgeEi/GojXM8iwf/lcTJL0+ndglG7lY tmNYP9RuiV1ioxt51uetwPX3rGHzzpf4EBdUGwnDQgiW9JUYq6zVeAqZa/9aG5cgdoRM of9+nrxBHa5d4sfcUai9f0HZnnLD1ov+9KGB0CERIIZ4tCTvWhbC29lQFoSS8GaHondR C8OzwERGjG55tDqidS0M99MScX2+NtRFi4abg3GJ54TUKDyUjfpd/nrv/01K+Q8MFSjv HQuw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=aUTvCJHz; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id w26-20020a2e301a000000b002556f5e21ecsi325066ljw.3.2022.06.17.15.08.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 15:08:51 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D0107240026 for ; Sat, 18 Jun 2022 00:08:50 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LPtVB3GWwz6tmq for ; Sat, 18 Jun 2022 00:08:50 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=aUTvCJHz; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30758 Archived-At: I tried to do this for the last filter I wrote. I wrote a separate file wit= h my assert() functions and wrote a Makefile to concatenate it automaticall= y with the filter file (removing the return instruction) and run it with pa= ndoc. Except that I have to alternate between the main script and the tempo= rary file when correcting bugs, I am rather satisfied with this setup. Here= it is: https://bastien-dumont.onmypc.net/git/bdumont/pandoc-lua-filters/src/branch= /master/margin-notes Le Friday 17 June 2022 =C3=A0 09:19:08PM, denis.maier-NSENcxR/0n0@public.gmane.org a =C3=A9crit= : > Hi > Is there any way to use tests when developing Lua filters? Of course, you= can just compare the document produced with the filter against the expecte= d output with diff or so, but maybe there's a better approach...? >=20 > All the best, > Denis=20 >=20 > --=20 > You received this message because you are subscribed to the Google Groups= "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/e60c5df6203a41b8862f7a360b479ea8%40unibe.ch. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/Yqz7S/qegYB7yXAG%40localhost.