Compare commits

..

No commits in common. "64d4d6c71c38d2c541ee0574258427bb6f2cc24b" and "41797a07b8706302e3c3d97acf840d519adc0a1f" have entirely different histories.

5 changed files with 11 additions and 30 deletions

View File

@ -8,10 +8,10 @@
#endif #endif
#ifndef ALPHA #ifndef ALPHA
#define ALPHA 0.9999 #define ALPHA 0.99
#endif #endif
int main() int main(int argc, char *argv[])
{ {
int number_of_items = 0; int number_of_items = 0;
int capacity = 0; int capacity = 0;

14
run.bat
View File

@ -1,15 +1,5 @@
:: Uso: [set EXEC="caminho/do/executavel.exe"] && [set TEST_FOLDER="caminho/dos/casetests"] && run.bat
@ECHO off @ECHO off
if not defined EXEC ( for %%g in (test/*) do (
set EXEC="build/solucao.exe" "build/solucao.exe" < test/%%g
)
if not defined TEST_FOLDER (
set TEST_FOLDER=test
)
for %%g in (%TEST_FOLDER%/*) do (
echo Arquivo de teste: %TEST_FOLDER%/%%g
%EXEC% < %TEST_FOLDER%/%%g
) )

13
run.sh
View File

@ -2,15 +2,6 @@
IFS=$'\n' IFS=$'\n'
if [[ -z $EXEC ]]; then for file in $(find test -type f); do
EXEC="build/main.out" build/main.out < $file
fi
if [[ -z $TEST_FOLDER ]]; then
TEST_FOLDER="test"
fi
for file in $(find "$TEST_FOLDER" -type f); do
echo "Arquivo de teste: $file"
"$EXEC" < "$file"
done done