Ввод в приложение поменял
This commit is contained in:
parent
218abec120
commit
7cd64abbf2
1 changed files with 1 additions and 5 deletions
6
.github/workflows/compile-and-test.yml
vendored
6
.github/workflows/compile-and-test.yml
vendored
|
@ -49,11 +49,7 @@ jobs:
|
|||
echo "Testing with file: $file"
|
||||
|
||||
# Создаём файл ввода
|
||||
echo "0" > input.txt
|
||||
echo "$file" >> input.txt
|
||||
|
||||
# Запускаем программу
|
||||
./a.out < input.txt
|
||||
(echo "0"; echo "$file") | ./a.out
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "::error::Test failed for $file"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue