Calvin Rose
c7c3821aa6
Remove extra output from peg test.
2026-02-06 00:23:45 -06:00
Calvin Rose
d2685594f9
VERBOSE=1 caused tests to fail as we did more asserts inside the assert.
...
Thenc checked stderr for messages. Since the helper makes assert write
to stderr, this caused extra cruft in our test output.
2026-02-06 00:17:11 -06:00
Calvin Rose
ca5c617fba
More tweaks to peg suite for arm32 failures.
2026-02-06 00:04:18 -06:00
Calvin Rose
16b449a137
Print "actual" output on verbose mode for suite-peg
2026-02-05 23:52:28 -06:00
Calvin Rose
2e8dd90a51
Line endings in tests.
2026-02-05 23:38:55 -06:00
Calvin Rose
0194115412
Auto-format janet.
2026-02-05 00:33:52 -06:00
Calvin Rose
f33697d6a0
Show accumulation buffer and tagged capture in peg debug rule.
2026-02-04 21:17:08 -06:00
Calvin Rose
b2bf70eace
Move peg debug output to stderr in line with other internal debug tools.
...
Also allow disabling color in the debug output.
2026-02-04 18:52:20 -06:00
0xbec163
416bba9bd9
Add ??/debug PEG rule ( #1710 )
...
* Add debug (short-form ??) PEG rule
* Display capture stack to debug PEG rule
* Revise spec_debug to emit just the rule
* Update to proper indentation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Add a marshal/unmarshal test for ??/debug
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-04 18:44:46 -06:00
Calvin Rose
d47f82713b
More tweaks for named arity linting.
...
Handle more edge cases where &named is combined with &opt
2026-01-31 23:57:08 -06:00
Calvin Rose
497e363401
Make sure named argumnets are compiled before destructured params.
...
This handles an edge-case when combing destructured and named
parameters that produced spurious and confusing compiler lints.
2026-01-31 19:34:26 -06:00
Calvin Rose
8f8382eead
Partially address issue #1654 - better linting for named arguments.
...
While there are still cases that we could improve here, this change will
help in most cases with minimal overhead.
2026-01-31 13:16:02 -06:00
Calvin Rose
0c1585fdfe
Preserve tuple type to fix #1709
...
Macro expansion as done by `macex1` was incorrectly losing the semantic
tuple information inside the `set` form. Since macro expansion is
usually done by the compiler, and `macex1` is mainly used for debugging
and deep transformations inside other macros, this only surfaced with
certain usage of short-fn macro.
2026-01-29 06:52:43 -06:00
Calvin Rose
7366fbed1f
Disallow scheduling already modified fibers.
...
While not strictly needed for correctness, this discourages misuse of
fibers and mixing both coroutine, error handling, and scheduling
purposes.
2026-01-28 10:55:00 -06:00
Calvin Rose
33f5a0b319
Add test case to help address #1705
2026-01-24 12:23:01 -06:00
Calvin Rose
0f285855f0
Address #170 - strchr was not properly checking for 0 byte.
2026-01-23 08:13:15 -06:00
Calvin Rose
c43e06672c
Address #1700 and move test cases to suite-compile.janet
2026-01-23 08:01:22 -06:00
Calvin Rose
2fabc80151
Address #1699 and improve test case for #1702
2026-01-23 07:46:31 -06:00
Calvin Rose
4dd08a4cde
Address #1702 with extra bounds check.
...
The buffer overflow happened because we were creating many upvalue
slots in the compiler without using them, along with some faulty logic
that used the wrong length to check for the bitmap's bounds.
2026-01-23 07:33:05 -06:00
Calvin Rose
268864b072
Don't use new flag on mingw test.
2026-01-17 22:15:03 -06:00
Calvin Rose
06f099d7f9
Make sure to run test with old flags as well.
2026-01-17 20:25:06 -06:00
Calvin Rose
6549903c51
Add option to explicity inherit handles rather than implicitly.
2026-01-17 20:07:12 -06:00
Calvin Rose
4575cefb7e
Add shorthand for os test.
2026-01-17 10:11:56 -06:00
Calvin Rose
0a5ff208a8
Disable ipv6 for now in main test.
2026-01-12 08:00:11 -06:00
Calvin Rose
d35f189446
Turn strict linting back on.
2026-01-12 07:57:41 -06:00
Calvin Rose
216c9799f5
Some more work on socket testing and allow setting ipv4 vs. ipv6 on raw
...
sockets.
2026-01-12 07:41:14 -06:00
Calvin Rose
15cea60589
Revert "Reworking coloring logic for repl and CLI interface."
...
This reverts commit 10954fe0d7 .
2026-01-10 13:20:02 -06:00
Calvin Rose
10954fe0d7
Reworking coloring logic for repl and CLI interface.
2026-01-10 13:15:46 -06:00
Calvin Rose
cb355815ee
Turn on strict linting in test suite.
2026-01-10 08:37:09 -06:00
Calvin Rose
ddc7cc5ae4
Warn on unused bindings (strict lint).
...
This does create a lot of warnings, especially in the test suite, but
should improve code and point out real issues.
To disable individual messages, either disable linting, add the metadata :unused to a
binding, or add the prefix "_" to a symbol.
2026-01-10 07:59:11 -06:00
Calvin Rose
84ced08810
Add test case.
2026-01-09 08:15:18 -06:00
Michael Camilleri
6e4b0b9259
Update year in copyright disclaimer to 2026
2026-01-02 14:14:53 +09:00
Calvin Rose
d5a56caa33
Add fix for issue #1687 - destrucutre + splice
...
An optimization to ellude creation of intermediate tuples was
erroneously flagging a splice as invalid, even though it was valid.
Instead, if we see splice on the rhs, bail out of the optimization.
2025-12-22 07:40:29 -06:00
Michael Camilleri
7810724ed2
Exclude MinGW on WINE from special case
2025-12-15 12:04:14 +09:00
Michael Camilleri
1e73fa7ec7
Add special case for expected error on MinGW
2025-12-15 11:27:46 +09:00
Michael Camilleri
9b1194b08a
Use double-NULL byte for empty process environments on Windows
2025-12-15 10:00:03 +09:00
Calvin Rose
f79e4d6249
Address #1674 - Add cms combinator to peg.
...
It behaves like `cmt`, but flattens the result and can collect
multiple captures if an indexed data structure is returned.
2025-11-30 14:19:51 -06:00
Calvin Rose
be2a1ddf96
Add test case for dollar suffix match.
2025-11-30 14:19:51 -06:00
Calvin Rose
d9105299f1
Allow matching tuples and arrays exactly via a dollar suffix.
2025-11-30 14:19:51 -06:00
Michael Camilleri
8241d9cbb4
Revert support for bundles without an info file
2025-10-27 09:32:38 +09:00
Michael Camilleri
6bd02bb5b6
Confirm necessary files during bundle installation
2025-10-26 06:53:27 +09:00
Ian Henry
0c34033b72
add some tests for the (try) macro
2025-10-24 21:56:07 -07:00
Calvin Rose
ab3e843433
Add test case for string/format %s of buffer
2025-09-01 14:24:51 -05:00
Calvin Rose
095a81286a
Add per-thread finalizer calls in missing places.
2025-09-01 12:38:11 -05:00
Calvin Rose
82416e4e4e
Address #1629 - janet_deinit called before threaded channel message sent
...
to thread.
If we take a reference to another thread inside channel code, make sure
that we increase the refcount to avoid a use after free.
2025-09-01 12:30:29 -05:00
sarna
8c9cd63cb1
Add tests for import arg validation
2025-07-13 16:32:50 +02:00
Calvin Rose
f4ecb5a90f
Reorder post event / interrupt sequence in deadline.
...
The interrupt message should come _after_ the post event is made.
2025-06-18 22:13:14 -05:00
Calvin Rose
92e91259c3
Don't call pthread cancel on normal exits.
...
Calling pthread_cancel on threads that can exit normally is not needed.
Instead, we immediately call pthread_join if a thread can exit normally.
2025-05-18 09:52:11 -05:00
Calvin Rose
5bbfcdacd5
Work on #1596 - No detached threads, make sure to call pthread_join
...
Call pthread_join on all worker threads for timeouts. Previously, we
were leaking some threads, as well as creating a timeout and leaving
has_worker unset on certain timeouts.
2025-05-18 08:36:53 -05:00
Calvin Rose
38e841fc5c
Get rid of test error.
2025-04-05 20:52:47 -05:00