Skip to content

Conversation

samchon
Copy link
Owner

@samchon samchon commented Aug 29, 2025

This pull request addresses an issue with random boolean generation by adding support for generating random boolean values and includes a corresponding test. It also bumps the package version to reflect these changes.

Random boolean support:

  • Added logic in RandomProgrammer.ts to handle the "boolean" atomic type, ensuring that random boolean values are generated using the new randomBoolean internal method.

Testing:

  • Introduced a new test file test_issue_1661_random_boolean.ts to validate that the random boolean generator is correctly invoked.

Version update:

  • Incremented the package version from 9.7.1 to 9.7.2 in package.json to reflect the new feature and bug fix.

@samchon samchon requested a review from Copilot August 29, 2025 06:15
@samchon samchon self-assigned this Aug 29, 2025
@samchon samchon added the bug Something isn't working label Aug 29, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request fixes issue #1661 by adding support for generating random boolean values without requiring arguments. The fix ensures that the typia.createRandom<boolean>() function generates a proper random boolean generator that calls the internal randomBoolean() method without parameters.

  • Added boolean case handling in RandomProgrammer.ts to generate random booleans using randomBoolean() with no arguments
  • Created a test to verify the random boolean generator produces the expected function signature
  • Bumped package version from 9.7.1 to 9.7.2

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/programmers/RandomProgrammer.ts Added boolean type handling to generate randomBoolean() calls without arguments
test/src/features/issues/test_issue_1661_random_boolean.ts Added test to validate random boolean generation produces correct function signature
package.json Version bump from 9.7.1 to 9.7.2

Copy link

pkg-pr-new bot commented Aug 29, 2025

Open in StackBlitz

npm i https://pkg.pr.new/typia@1662

commit: f4aab57

@samchon samchon merged commit e729928 into master Aug 29, 2025
10 checks passed
@samchon samchon deleted the fix/random-boolean branch August 29, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant