[#1782] test(MaxAverageRatio): Add run test bash and cases describe
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
# 邊界情況清單
|
||||||
|
|
||||||
|
## 需要測試的邊界情況
|
||||||
|
- [x] one element in classes
|
||||||
|
- [x] classes Length >= 1000
|
||||||
|
- [x] extraStudent = 1
|
||||||
|
- [x] extraStudent = 10000
|
21
problems/1792-maximum-average-pass-ratio/test/run_tests.sh
Executable file
21
problems/1792-maximum-average-pass-ratio/test/run_tests.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "🧪 執行 LeetCode 題目測試"
|
||||||
|
echo "=========================="
|
||||||
|
|
||||||
|
# 執行 C# 測試
|
||||||
|
echo "📋 C# 測試結果:"
|
||||||
|
cd ../csharp
|
||||||
|
if dotnet build > /dev/null 2>&1; then
|
||||||
|
cd ../test
|
||||||
|
if dotnet test --logger "console;verbosity=minimal" 2>/dev/null; then
|
||||||
|
echo "✅ C# 測試通過"
|
||||||
|
else
|
||||||
|
echo "❌ C# 測試失敗"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "❌ C# 編譯失敗"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "📊 測試完成!"
|
Reference in New Issue
Block a user