initial commit
This commit is contained in:
+20
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user