summaryrefslogtreecommitdiffstatshomepage
path: root/test/unit/eval/decode_spec.lua
AgeCommit message (Collapse)AuthorFiles
2025-03-03refactor(messages): simplify message historyLuuk van Baal1
2024-04-10refactor(test): inject after_each differentlyLewis Russell1
2024-04-08test: improve test conventionsdundargoc1
Work on https://github.com/neovim/neovim/issues/27004.
2023-12-04build: enable lintlua for test/unit/ dir #26396Justin M. Keyes1
Problem: Not all Lua code is checked by stylua. Automating code-style is an important mechanism for reducing time spent on accidental (non-essential) complexity. Solution: - Enable lintlua for `test/unit/` directory. - TODO: only `test/functional/` remains unchecked. previous: 45fe4d11add933df76a2ea4bf52ce8904f4a778b previous: 517f0cc634b985057da5b95cf4ad659ee456a77e
2017-04-09unittests: Fix linter errorZyX1
2017-04-08unittests: Do not alter p_enc in decode unit testZyX1
2017-03-29eval: Split eval.c into smaller filesZyX1
2017-03-11unittests: Fix linter errorsZyX1
2017-03-11unittests: Do not import libnvim or headers in main processZyX1
Slows down unit tests much, but gets rid of as much preserved state as possible.
2017-03-11unittests: Check core dumps in after_each, like in functestsZyX1
2017-03-11unittests: Run all unit tests in their own processesZyX1
Used sed -r -i -e '/ helpers =/ s/$/\nlocal itp = helpers.gen_itp(it)/; s/^(\s*)it\(/\1itp(/' test/unit/**/*_spec.lua to alter all tests. Locally they all run fine now. Reasoning: 1. General: state from one test should not affect other tests. 2. Local: travis build is failing with something which may be an output of garbage collector. This should prevent state of the garbage collector from interferring as well.
2016-11-17build: Target luacheck HEAD.Justin M. Keyes1
https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606 > If you really want to use bleeding-edge version you should get the > rockspec from master branch, not a fixed commit ... > The correct way to install from a specific commit is cloning that > commit and running "luarocks make" from project directory. The reason > is that running "install" or "build" on an scm rockspec fetches > sources from master but uses build description from the rockspec > itself, which may be outdated.
2016-04-18functests: Replace \xXX escapes with \DDD in lua codeZyX1
2016-04-18eval/decode: Do not overflow when parsing `-`ZyX1
Also makes if’s less nested.
2016-04-18eval/decode: Make sure that error messages do not cause overflowZyX1
2016-04-18eval/decode: Make sure that parsing strings does not overflowZyX1
2016-04-18eval/decode: Avoid overflow when parsing incomplete null/true/falseZyX1
Note: second test does not crash or produce asan errors, even though it should.