feat(utils, templates, docs): file-based templates + stronger README

This commit is contained in:
2025-09-12 09:44:30 +08:00
parent 002e9e6c32
commit d724a5fb65
35 changed files with 1421 additions and 727 deletions

View File

@@ -0,0 +1,36 @@
#!/bin/bash
set -e
echo "🧪 執行測試: 0042-answer-to-everything"
echo "=========================="
pushd "$(dirname "$0")" >/dev/null
echo "📋 C# 測試結果:"
if (cd ../csharp && dotnet build >/dev/null 2>&1); then
if dotnet test --logger "console;verbosity=minimal" >/dev/null 2>&1; then
echo "✅ C# 測試通過"
else
echo "❌ C# 測試失敗"
fi
else
echo "❌ C# 編譯失敗"
fi
echo ""
echo "📋 Go 測試結果:"
if (cd ../go && go build >/dev/null 2>&1); then
if go test -v >/dev/null 2>&1; then
echo "✅ Go 測試通過"
else
echo "❌ Go 測試失敗(顯示詳細)"
go test -v
fi
else
echo "❌ Go 編譯失敗"
fi
popd >/dev/null
echo ""
echo "📊 測試完成!"