cppcheckr

Crates.iocppcheckr
lib.rscppcheckr
version1.0.3
sourcesrc
created_at2024-10-28 07:28:40.40839
updated_at2024-10-28 15:53:53.360656
descriptioncppcheckr, a cpp file tester for competetive programing.
homepage
repository
max_upload_size
id1425340
size16,875
(Paulistaken)

documentation

README

cppcheckr

A smol cpp file tester for competetive programing, runing tests from a directory in .in and .out format :)

usage

cppcheckr -a algo -i testy/inpfolder/test -o /testy/outfolder/test -b 0 -e 5000 -n 500

will:

  • compile file algo.cpp
  • run the resoulting program with input from folder testy/inpfolder and compare it to outputs from folder testy/outfolder
    • Where the name of the tests look like: testy/inpfolder/test{i}.in and testy/outfolder/test{i}.out
    • i being a number between 0 and 5000 (remove {} braces)
    • the program will report every 500 tests to show you it hasn't halted
  • test the speed of those programs ( so you can see how well your optimizations work :) )
  • You can pass the argument -p 1 to make sure all tests pass :)

more info in cppchecker -h

Commit count: 0

cargo fmt