>
> - ii: I don't see it using netcat
You can use netcat in the program or in the test. This is an example
where you can do the test of ii using simple shell scripts with
netcat. You don't need unit test or mockup.
> - quark: Doesn't use inetd
Because it was not designed by me. I propossed it
On 25 February 2015 at 20:52, Rian Hunter wrote:
> On Wed, Feb 25, 2015 at 07:45:58AM +0100, Anselm R Garbe wrote:
>> All you need is creating test input, save the test output and whenever
>> you call main() with the same test input, you just check for
>> regressions in the test output compared to
On 25/02/2015, Eric Pruitt wrote:
> unwrapped
> lines are better since it lets the end-user choose what width they want
> their lines wrapped at.
This.
On 25/02/2015, Markus Teich wrote:
> Please wrap your lines to a majority approved sane length. Thanks.
Sanity is not a democracy.
Being the author of the initial patch, Marc has reminded me to submit
any feedback I have on the abduco_force patch, which will supersede my
contribution. I did initially think of using a -f option, but didn't
think there would be a need for any other option to be forced. This is
how I ended up usi
Went back and added some comments to expr where I thought it would
benefit from extra explanation. Got rid of unnecessary allocations.
Used utfnlen() with the match operator to add UTF-8 support. Made some
changes for the style guide, then also rearranged a few things that
IMO make the code more re
On Thu, Feb 26, 2015 at 12:33:07AM +0100, FRIGN wrote:
> Just wrap your lines, it's basic E-Mail-etiquette.
> And it's not just some convenience for Mutt-users. Any mail-client benefits
> from properly-wrapped lines and there's no reason to tell every user to
> use a script to handle it.
> This jus
Rian Hunter said:
> In many cases it would be simpler to have a single program.
Looks like you are in a wrong crowd.
--
Dmitrij D. Czarkoff
On Wed, 25 Feb 2015 14:17:30 -0800
Eric Pruitt wrote:
> I see from your headers that you use mutt. It's a lot easier to write a
> mail filter (man muttrc && /display_filter) than to change everyone's
> behaviours or, in this case, their MUA's behaviours. I've got an awk
> script filter that does
David Phillips wrote:
> Three colours sounds like a good middle ground. Attached is a patch which:
>
> * Adds another colour in config.def.h, COLOR_INIT
> * Renames the colours from numerical ones to ones with meaningful
> names; COLOUR_INPUT for when there is content in the input buffer and
> COL
On Wed, Feb 25, 2015 at 09:09:44PM +0100, Markus Teich wrote:
> Please wrap your lines to a majority approved sane length. Thanks.
I see from your headers that you use mutt. It's a lot easier to write a
mail filter (man muttrc && /display_filter) than to change everyone's
behaviours or, in this ca
---
Heyho,
I noticed a bug in slock. When starting slock on my laptop, then docking it
(which automatically switches to a bigger display with udev and xrandr), only
parts of the screen are covered by the lockscreen window. The attached patch
fixes that by adding the Xrandr extension, selecting t
On Wed, Feb 25, 2015 at 09:04:09AM -0800, Evan Gates wrote:
> came up on IRC, use return with a NOTREACHED comment instead of comma operator
> also typedef Test
> -emg
Applied, cheers :)
1. You have a part you have to test, write a test program covering the
*important* functionality. If your module contains a few objects with
interfaces, write one test creating, modifying and destroying these
objects as you see fit.
Writing an interface is work, but it is also a set of strings that
On Wed, 25 Feb 2015 14:57:15 -0500
Greg Reagle wrote:
> > - ii: I don't see it using netcat.
> > - quark: Doesn't use inetd
> > - surf: depends on webkit for most stuff
> > - dwm: X11 API
> >
> > Why aren't these communicating with stdin or stdout?
>
> I think that is a great question. I would
Rian Hunter wrote:
> …
Heyho Rian,
Please wrap your lines to a majority approved sane length. Thanks.
--Markus
On 02/25/2015 02:35 PM, Eduardo A. Bustamante López wrote:
> This is very simplistic.
>
> I'll give you some examples:
>
> - ii: I don't see it using netcat.
> - quark: Doesn't use inetd
> - surf: depends on webkit for most stuff
> - dwm: X11 API
>
> Why aren't these communicating with stdin or
On Wed, Feb 25, 2015 at 07:45:58AM +0100, Anselm R Garbe wrote:
> All you need is creating test input, save the test output and whenever
> you call main() with the same test input, you just check for
> regressions in the test output compared to the expected test output.
Dunno, this seems awfully r
Louis Santillan wrote:
> I'm asking an honest question here because there is a lot of wisdom on mailing
> list and I very well lack that perspective. How is main() the unit test? I
> read that almost as "I don't always test, but when I do, I do it production."
Heyho Louis,
in this case I can al
On Wed, Feb 25, 2015 at 08:16:52AM +0100, k...@shike2.com wrote:
> Write your program to deal with sdtdin and stdout, and comunicate
> to the network using nc or inetd.
This is very simplistic.
I'll give you some examples:
- ii: I don't see it using netcat.
- quark: Doesn't use inetd
- surf: depe
I'm asking an honest question here because there is a lot of wisdom on
mailing list and I very well lack that perspective. How is main() the
unit test? I read that almost as "I don't always test, but when I do,
I do it production."
exactly 0 1 2, stdin stdout, stderr.
On Tue, Feb 24, 2015 at 10:45 PM, Anselm R Garbe wrote:
> On 24 February 2015 at 22:21, Sam Dodrill wrote:
>> I was wondering what you all use for a suckless style unit testing
>> framework in C.
>
> If you apply the Unix principle correctly, main() is your unit test.
>
Which Unix Principle [0][
came up on IRC, use return with a NOTREACHED comment instead of comma operator
also typedef Test
-emg
From 6cdfb37982fe7c9d4ead731f2b5aad67ca92821c Mon Sep 17 00:00:00 2001
From: Evan Gates
Date: Wed, 25 Feb 2015 09:01:20 -0800
Subject: [PATCH] re-typedef Test, use NOTREACHED comment instead of co
On Tue, Feb 24, 2015 at 07:37:00PM -0800, Evan Gates wrote:
> cleanup, code deduplication, fix the one instance in parsing we were
> checking which primary we had
>
> -emg
Thanks emg, applied all of them :)
24 matches
Mail list logo