Skip to content

Fix SAT/SAT3 verifiers: || operator and CertificateParseException#314

Merged
wrigjl merged 1 commit into
CSharpAPIfrom
bugfix/sat-sat3-verifier-or-operator-and-exceptions
Jun 19, 2026
Merged

Fix SAT/SAT3 verifiers: || operator and CertificateParseException#314
wrigjl merged 1 commit into
CSharpAPIfrom
bugfix/sat-sat3-verifier-or-operator-and-exceptions

Conversation

@Trosper3

Copy link
Copy Markdown
Contributor

Both verifiers used bitwise | instead of logical || when comparing string values for True/False assignments. While functionally equivalent today (no side effects), it signals a misunderstanding and is corrected to ||.

SATVerifier additionally had no error handling: malformed assignments (missing separator, unknown boolean value, empty certificate) were silently ignored. It now throws CertificateParseException on any parse failure, matching SAT3Verifier's existing behavior.

SAT_Class gains a validateInstance() guard in its non-default constructor, mirroring the same guard already in SAT3_Class.

Both verifiers used bitwise | instead of logical || when comparing
string values for True/False assignments. While functionally equivalent
today (no side effects), it signals a misunderstanding and is corrected
to ||.

SATVerifier additionally had no error handling: malformed assignments
(missing separator, unknown boolean value, empty certificate) were
silently ignored. It now throws CertificateParseException on any parse
failure, matching SAT3Verifier's existing behavior.

SAT_Class gains a validateInstance() guard in its non-default
constructor, mirroring the same guard already in SAT3_Class.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wrigjl

wrigjl commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

| vs || is subtle.... love it!

@wrigjl wrigjl merged commit adf6532 into CSharpAPI Jun 19, 2026
6 checks passed
@wrigjl wrigjl deleted the bugfix/sat-sat3-verifier-or-operator-and-exceptions branch June 19, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants