validateCombination_test.go 434 B

12345678910111213141516
  1. package solver
  2. import (
  3. "testing"
  4. )
  5. // TestValidateCombination tests the validateCombination function.
  6. func TestValidateCombination(t *testing.T) {
  7. // Create a new solver
  8. solver := Solver{}
  9. // Test the validateCombination function
  10. if !solver.validateCombination("769154832", "154832769", "832769154", "671945328", "945328671", "328671945", "597416283", "416283597", "283597416") {
  11. t.Error("validateCombination failed")
  12. }
  13. }