Commit Graph

355 Commits

Author SHA1 Message Date
nick black
5c34ff4735 [tests] add FamilyAbove for infinite loop found by drewt #2687 2022-12-10 05:13:42 -05:00
nick black
7651cde998 workarounds for busted doctest 2.4.9 #2673 2022-10-04 04:59:43 -04:00
Tim Gates
ab8590d7b3 docs: Fix a few typos
There are small typos in:
- src/demo/fission.c
- src/tests/wide.cpp

Fixes:
- Should read `obliterated` rather than `oblitrated`.
- Should read `range` rather than `reange`.
2022-06-28 00:42:24 -04:00
Nick Black
ec1ef7200b use ffmpeg-free-compatible video in all tests #2631 2022-03-08 04:14:40 -05:00
nick black
8cd54b7932
[sixel] fix unit tests on big-endian machines 2022-02-20 19:41:12 -05:00
nick black
07b808588b simple ncvisual_from_sixel() unit test 2022-02-15 18:52:39 -05:00
nick black
bec97315ad [tabs] autogrow to the right to next tabstop #1233 2022-02-11 05:52:16 -05:00
nick black
3681a95b3c [tabs] update plane+cell unit tests #1233 2022-02-11 05:52:16 -05:00
nick black
78cc44a1bf [tabs] get all unit tests working #1233 2022-02-11 05:52:16 -05:00
nick black
21f68bf57c [tabs] get PutcTaB unit test working #1233 2022-02-11 05:52:16 -05:00
nick black
7c8cf1e6e8 [ncplane_put] admit tab characters #1233 2022-02-11 05:52:16 -05:00
nick black
b326d43885 [tabs] remove obsolete FIXME 2022-02-11 05:52:16 -05:00
nick black
25b94c021d more TaB unit tests #1233 2022-02-11 05:52:16 -05:00
nick black
6bf37089a1 add unit test for putchar on tab #1233 2022-02-11 05:52:16 -05:00
Alex Samuel
ceb4a0e948 (Failing) test case for UNALIGNED puttext. 2022-02-09 14:44:40 -05:00
nick black
15e2c6eb12
[ncinput_equals] consider UNKNOWN == PRESS #2554 2022-01-12 00:37:11 -05:00
nick black
678273aaf5
[unittests] free up ncsixel_as_rgba() results 2022-01-10 12:15:01 -05:00
nick black
c876ef18a5
[sixels] stretch in unit test to work on all geometries 2022-01-02 23:21:21 -05:00
nick black
03160d902d [termdesc] don't enable sixel graphics with 0 color registers 2022-01-01 01:21:29 -05:00
nick black
dba86c72f0 [tests] is this just some ncdirect problem 2022-01-01 01:21:29 -05:00
nick black
f2cca37c59
[tester] define loglevel so we can log in internal headers 2021-12-29 21:16:40 -05:00
nick black
3d0fbc4d8f ncvisual_from_sixel() atop ncsixel_as_rgba() 2021-12-23 09:47:41 -05:00
nick black
bb91c170dd implement sixel_as_rgba() #1724 2021-12-23 09:47:41 -05:00
nick black
21dca60e7c [logging] use CRLF on windows #2489 2021-12-19 06:44:51 -05:00
nick black
094c8c00ca [channels_blend] update unit tests for general blender #2433 2021-12-19 02:27:15 -05:00
nick black
5f6f9ff75e [tests] cut line length down in textlayout test 2021-12-16 18:34:36 -05:00
nick black
e49394a702
[output] partial print on right-aligned overflow text #2472 2021-12-15 01:07:08 -05:00
KristofferC
a3c37932d6 check __MINGW32__ instead of __MINGW64__ 2021-12-13 11:57:55 -05:00
nick black
b075de5da9
[channels_blend] blend palette-indexed colors #2442 2021-12-12 14:24:05 -05:00
nick black
49e9406576 [nctree] refuse the standard plane 2021-12-12 07:23:27 -05:00
nick black
8fe602e9ef [Nctree] adapt unit tests to newly-allowed empty trees #2458 2021-12-12 07:23:27 -05:00
nick black
52ac57cb49
[FutureFlags] don't overwhelm stdout in test 2021-12-11 17:33:45 -05:00
nick black
64c8776c48
[TextLayout] update unit test 2021-12-10 09:06:24 -05:00
nick black
0740f0286f
update LayoutZooText unit test 2021-12-10 02:26:18 -05:00
nick black
adcdef6288 [ncplane_puttext] unit test for newline while growing plane #2446 2021-12-09 18:56:12 -05:00
nick black
e57999d226 basic autogrow tests #2440 2021-12-08 01:09:15 -05:00
nick black
c8e601e457 no autogrow for standard plane, add autogrow tests #2440 2021-12-08 01:09:15 -05:00
nick black
5eb23cefb0 [ncplane_put] subtle cursor verification fix
We were checking for an off-plane cursor destination on
the X axis when it was provided explicitly, but not when
-1 was used to indicate the current position (contradicting
the comment immediately above the test). We also want to do
so when we're using the current position, though in this
case scrolling must be taken into account. Also, we were
placing the cursor on such a validation failure, despite not
intending to write anything.

Not testing for a current x (the -1 case) usually worked
because it was thrown out by ncplane_move_cursor_yx() below.
That fails, however, when we're working with an EGC that's
more than one column.

Delicate!
2021-12-07 20:42:42 -05:00
nick black
91111cdb58
[ncchannels_reverse] don't generate illegal alpha+color states #2421 2021-12-04 06:27:38 -05:00
nick black
1c93a5ff45
[palette] rename unit tests, add some CHECKs 2021-12-04 03:54:30 -05:00
nick black
6080de837a [ncplane_putc_yx] copy egc to avoid invalidation
ncplane_putc_yx() calls ncplane_put() using an EGC extracted
from its nccell argument. The very act of writing that cell
to the plane, however, can grow the plane's underlying EGCpool,
possibly invalidating this reference. This was showing up as
a unit test failure on macOS, and was hopefully also the cause
of unit test failures on Alpine i686. Do a quick heap copy of
the EGC in ncplane_putc_yx(), and free it after writing to the
plane. Shouldn't cost anything (there was no measurable
impact in my testing). Closes #2420.
2021-12-04 01:03:13 -06:00
nick black
418aad1e45 reenable PlaneAtCursorInsane unit test on apple 2021-12-04 00:22:43 -06:00
nick black
c49d3b1e02 enable RightToLeft test on apple 2021-12-04 00:18:21 -06:00
nick black
4513d36978 enable MultiglyphWidth test on apple 2021-12-04 00:16:24 -06:00
nick black
a7db3b88fe
Use samoa.avi instead of fm6.mov in unit test
On DFSG builds, we don't have fm6.mov available to us,
so use samoa.avi (of my own construction) instead.
2021-12-03 23:27:54 -05:00
nick black
52c40cbca5
[notcurses.3] document all environment variables 2021-12-03 20:04:46 -05:00
nick black
e57720ef51 [Stacking] fix unit test 2021-11-30 02:03:09 -05:00
nick black
0761994abb mark some string literals as utf8 2021-11-30 02:03:09 -05:00
nick black
7a91a2f905 normalize cell initializer names (prefix with NC) 2021-11-30 02:03:09 -05:00
nick black
b340f01a0a always use space when fgrgb == bgrgb #1316
When both foreground and background are using RGB, and
the two channels are the same RGB value, the glyph will
be invisible; emitting a space with the correct background
can save RGB escapes and glyph bytes. Eliminates several
longstanding FIXMEs in the Stacking unit tests. Add a new
function nccell_rgbequal_p(), and unit testing for it.
Add a new unit test to check that this optimization has
taken place, and that it has only taken place in the
rasterization phase--the original plane must be unchanged.
Closes #1316.
2021-11-30 02:03:09 -05:00