summaryrefslogtreecommitdiff
path: root/tests/core.fnl
Commit message (Collapse)AuthorAgeFilesLines
* Update fennel-test, and add test runner scriptAndrey Listopadov2023-08-281-1/+1
|
* Move everything to a single fileAndrey Listopadov2023-08-261-2/+2
| | | | | | | Now the library is fully self-contained and doesn't require any special flags to be used. Macros are now shipped inside the library itself and can be required by user code by requiring the same module name as the library.
* test for nils in vectorAndrey Listopadov2022-08-261-0/+6
|
* release v1.0.0Andrey Listopadov2022-08-211-672/+743
| | | | Almost complete rewrite of the library, complete with lazy sequences, immutable tables, transients, transducers, better equality semantics, and more correct code generation in macros.
* fix: bump fennel-test to v0.0.3Andrey Listopadov2021-10-171-24/+93
|
* release: v0.5.4Andrey Listopadov2021-07-221-1/+0
|
* refactor library to use new init-macros.fnl featureAndrey Listopadov2021-06-231-1/+1
| | | | | | | | | | | | Old way of requiring the library: (local clj (require :fennel-cljlib) (import-macros cljm :fennel-cljlib.macros) New way: (local clj (require :fennel-cljlib) (import-macros cljm :fennel-cljlib)
* fix: downgrade fennel to 0.8.1Andrey Listopadov2021-04-241-2/+3
|
* fix: move test library to separate projectAndrey Listopadov2021-04-241-1/+1
|
* fix: allow `reduced` to return nil and false valuesAndrey Listopadov2021-03-131-1/+7
|
* fix: update macros comparison function builderAndrey Listopadov2021-03-111-11/+11
| | | | No need to modify the metatable in macros.
* feat: add partition take and nthrest functionsAndrey Listopadov2021-02-221-0/+28
|
* fix: release 0.5.1Andrey Listopadov2021-02-191-534/+526
| | | | | | | | - eq will no longer change metamethods of tables - module info is hidden in metatable now - memoize uses proper deep comparison - tests no longer requires searching up in core namespace - memoization test doesn't depend on CPU speed anymore
* fix(core): check if nil is used as table keyAndrey Listopadov2021-02-161-1/+2
|
* fix(tests): fix test macros to correctly report errorsAndrey Listopadov2021-02-161-0/+1
| | | | runtime errors captured via pcall
* improve set iteration performanceAndrey Listopadov2021-02-151-2/+2
|
* fix: Fennel 0.8.0 enhancementsAndrey Orst2021-01-191-519/+520
| | | | | | | | | | Changelog: - fixed bug in try - reworked pretty printing for sets - handle cycles in sets - use new fennel.view format - reorganized library to make requiring it easier
* Revert "feature(core): print empty vectors as [] in the REPL"Andrey Orst2020-11-251-3/+1
| | | This reverts commit 7b02ecaff4e3e884700e4ec6a0ab4db28966dca1
* feature(core): print empty vectors as [] in the REPLAndrey Orst2020-11-251-1/+3
|
* feature(core): more hash table functionsAndrey Orst2020-11-211-1/+19
|
* fix: update ordered when removing items.Andrey Orst2020-11-211-33/+196
| | | | WIP: for unordered set
* feature: SetsAndrey Orst2020-11-191-65/+90
|
* feature: major overhaul of documentation, and some housekeepingAndrey Orst2020-11-171-1/+2
| | | | | | | - remove(macros): `fn+` as it seem impractical, and `fn*` can be used instead - rename(def, defonce): `:dynamic` to `:mutable` as dynamic implies dynamic scoping which is not feature of Lua. - doc: generated documentation for macro module.
* fix(core): fix seq function not handling tables with number keysAndrey Orst2020-11-151-2/+2
|
* fix(core): fix reduce-kv and testsAndrey Orst2020-11-151-7/+14
|
* feature(core): implement `reduced`Andrey Orst2020-11-151-0/+13
|
* fix(core): rename seq? to vector?Andrey Orst2020-11-151-10/+10
|
* fix(core): revert fn* to defn changeAndrey Orst2020-11-131-2/+2
|
* fix(core): refactoringAndrey Orst2020-11-131-12/+6
| | | | | | | - Rename `fn*` to `defn`, `fn&` to `fn+`. - Do not use `fn+` in the core at all, provide it for convenience. - Fix bug in `filter` due to incorrect `cons` implementation. - Update `seq` and `eq` functions in macros
* feature(core): remove macros from core (for loading with macros)Andrey Orst2020-11-131-62/+9
|
* fix(core): improved deep comparisonAndrey Orst2020-11-131-1/+38
|
* feature(core): support strings in seqAndrey Orst2020-11-121-2/+5
|
* fix(CI): overhaulAndrey Orst2020-11-121-0/+609