initial commit

This commit is contained in:
2026-07-31 14:21:48 +03:00
commit 92ceb8bec3
22 changed files with 3104 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package deepseek
import (
"errors"
"testing"
deeppow "dsp/pow"
)
func TestPowChallengeToBase64PropagatesSolverError(t *testing.T) {
_, err := (PowChallenge{
Algorithm: "DeepSeekHashV1",
Challenge: "invalid",
Salt: "salt",
Difficulty: 1,
}).ToBase64()
if !errors.Is(err, deeppow.ErrInvalidArgument) {
t.Fatalf("ToBase64() error = %v, want ErrInvalidArgument", err)
}
}