Skip to content

jimmytty/latex-track-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaTeX Exercism Demos (proof of concept)

Note

Is not impossible to solve Exercism exercises using *LaTeX* and applying TDD metodology but it’s a bit hacky…

Repository dependencies

  • pdflatex: https://www.tug.org/applications/pdftex/
    version details
    pdfTeX 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux)
    kpathsea version 6.4.0
    Copyright 2024 Han The Thanh (pdfTeX) et al.
    There is NO warranty.  Redistribution of this software is
    covered by the terms of both the pdfTeX copyright and
    the Lesser GNU General Public License.
    For more information about these matters, see the file
    named COPYING and the pdfTeX source.
    Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
    Compiled with libpng 1.6.43; using libpng 1.6.43
    Compiled with zlib 1.3.1; using zlib 1.3.1
    Compiled with xpdf version 4.04
        
  • pdftotext: http://poppler.freedesktop.org
    version details
    pdftotext version 24.03.0
    Copyright 2005-2024 The Poppler Developers - http://poppler.freedesktop.org
    Copyright 1996-2011, 2022 Glyph & Cog, LLC
        
  • bats: https://bats-core.readthedocs.io/en/stable/
    version details
    Bats 1.11.0
        

Running the examples

Enter in a subdirectory and runs:

bats *.bats

For instance, the step by step for the reverse-string exercise can be:

cd reverse-string/
bats *.bats

outputs:

1..6
ok 1 an empty string
ok 2 a word
ok 3 a capitalised word
ok 4 a sentence with punctuation
ok 5 a palindrome
ok 6 an even-sized word

Unit Test Framework

Try to port code to use qtest package.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published