Снова ввод поменял

This commit is contained in:
AZEN-SGG 2024-12-21 20:51:05 +03:00
parent 7cd64abbf2
commit c30d4c082a

View file

@ -48,8 +48,12 @@ jobs:
for file in t/*; do
echo "Testing with file: $file"
# Создаём файл ввода
(echo "0"; echo "$file") | ./a.out
# Создаём временный файл для ввода
echo "0" > input.txt
echo "$file" >> input.txt
# Передаём ввод через файл
./a.out < input.txt
if [ $? -ne 0 ]; then
echo "::error::Test failed for $file"
exit 1