Commit Graph

332 Commits

Author SHA1 Message Date
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
nick black
0b75f06abd add and unit test nccell_rgbequal_p() #1316 2021-11-30 02:03:09 -05:00
nick black
c298563e32 [FgMatchesBg] new unit test for optimized fg==bg #1316 2021-11-30 02:03:09 -05:00
nick black
75bd0dd0bc
use notcurses_data_dir() in tester, fetch 2021-11-29 22:19:45 -05:00
nick black
0dbb469a27 [sprixels] use cell-pixel geometry from ncpile #1687 2021-11-28 10:36:42 -05:00
nick black
8f26eeea5c
[textlayout] plug memory leak in unit test 2021-11-28 03:21:28 -05:00
nick black
0b4232d07d
[ncstrwidth] yield to ncstrwidth_valid 2021-11-26 01:36:52 -05:00
nick black
9b0f806d04 remove filesystem #include 2021-11-25 15:18:04 -05:00
nick black
7e63e33a0b [blitcore] accept newlines, set colcount = 1 #2196 2021-11-25 15:18:04 -05:00
nick black
b70afa8b5d [Media] unit tests: cap frames of video at 100 2021-11-25 15:18:04 -05:00
nick black
279b3f4cfe [tester] don't require TERM on windows #2363 2021-11-24 11:48:27 -05:00
nick black
87d75fcb95
add TextLayout unit test for scrolling off long lines #1590 2021-11-24 02:22:40 -05:00
nick black
f5c99c0cb4 reader unit test: plug memory leak 2021-11-24 00:07:51 -05:00
nick black
4d4487d7b4
convert fm6.mkv -> fm6.mov 2021-11-22 07:38:59 -05:00
nick black
7b19c4eb8e
swap in new notcursesIII.mov for notcursesIII.mkv 2021-11-22 06:43:18 -05:00
nick black
b2ce3f00f8
remove progbar PoC, move it into unit tests 2021-11-19 07:53:43 -05:00
nick black
12ca5bb4fc
[Visual] tighten geometry unit test, always set maxpixely based off sixel_maxy #2351 2021-11-18 15:38:22 -05:00
nick black
0124daf8b7
restore ncselector_destroy API, set widget in ncreader #2347 2021-11-17 02:02:55 -05:00
nick black
143c217332
[nctabbed_create] clean up error paths, refuse bound plane #2347 2021-11-17 01:35:40 -05:00
nick black
3d46681874
[LoadVideoPixelStretchOnePlane] greatly improve unit test 2021-11-17 01:23:42 -05:00
nick black
3b6e08333f
[LoadVideoPixelStretchDifferentPlanes] greatly improve unit test 2021-11-17 01:07:21 -05:00
nick black
e1c08b969d
[tester] one more leak in Stacking tests 2021-11-17 00:42:49 -05:00
nick black
01c6f8ba3d
[tester] kill memory leaks in two unit tests 2021-11-17 00:39:23 -05:00
nick black
ce2a6dc686
[multiselector] refuse a bound plane #2347 2021-11-17 00:35:28 -05:00