Skip to content

Add truthiness test cases for ensure_bool() validation#72

Merged
InauguralPhysicist merged 1 commit intomainfrom
claude/merge-truthiness-tests-01LM6Eg1JwH9otqqjRLU1eEB
Nov 23, 2025
Merged

Add truthiness test cases for ensure_bool() validation#72
InauguralPhysicist merged 1 commit intomainfrom
claude/merge-truthiness-tests-01LM6Eg1JwH9otqqjRLU1eEB

Conversation

@InauguralPhysicist
Copy link
Copy Markdown
Owner

Add comprehensive test cases that validate the ensure_bool() fix for scalar truthiness in control flow (already implemented in commit 87a28b4).

Tests added:

  • truthiness_test.eigs: Countdown loop using scalar as condition Tests that 'loop while count' works when count is a raw double
  • loop_fast.eigs: Performance benchmark with 1M iterations Validates that scalar fast path achieves C-level performance (12ms)

Also update .gitignore to exclude compiled benchmark binaries.

Related to PR #60 (copilot/fix-truthiness-bug-in-loop)

Add comprehensive test cases that validate the ensure_bool() fix for
scalar truthiness in control flow (already implemented in commit 87a28b4).

Tests added:
- truthiness_test.eigs: Countdown loop using scalar as condition
  Tests that 'loop while count' works when count is a raw double
- loop_fast.eigs: Performance benchmark with 1M iterations
  Validates that scalar fast path achieves C-level performance (12ms)

Also update .gitignore to exclude compiled benchmark binaries.

Related to PR #60 (copilot/fix-truthiness-bug-in-loop)
@InauguralPhysicist InauguralPhysicist merged commit dbafd14 into main Nov 23, 2025
5 checks passed
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