Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

exercises-lua

Github Actions Status

Lua 5.5 as a second programming language. The Russian course contains 27 lessons and assumes familiarity with functions, conditionals, loops, and collections.

How to contribute

Develop

# setup
make
# run
make compose
# check
make ci-check

# run tests
make compose-test

# run linters and validators
make compose-code-lint
make compose-description-lint
make compose-schema-validate

The image builds Lua 5.5.1 from its pinned official release commit. Luacheck runs separately on Debian's Lua 5.4 and checks the syntax shared by both versions.

The exercises use Lua's built-in assertions. To run their tests without Docker, install Lua 5.5 and run the following command from this repository.

make local-test

If another Lua version is the default, select the 5.5 interpreter explicitly.

make local-test LUA_BIN=/path/to/lua5.5

Solutions live in index.lua. The platform removes the region between -- BEGIN and -- END to prepare the learner's starter code. Function exercises keep a final return outside that region, so the tests can load and call the submitted function. Tests use the shared helper in lib/test_helper.lua through bin/test.sh. The modules exercise also includes a ready-to-use pricing.lua fixture.

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages