Skip to content

math.big: add test cases for is_power_of_2#18910

Merged
medvednikov merged 1 commit intovlang:masterfrom
phoreverpheebs:big_add_po2_tests
Jul 19, 2023
Merged

math.big: add test cases for is_power_of_2#18910
medvednikov merged 1 commit intovlang:masterfrom
phoreverpheebs:big_add_po2_tests

Conversation

@phoreverpheebs
Copy link
Copy Markdown
Contributor

@phoreverpheebs phoreverpheebs commented Jul 19, 2023

🤖 Generated by Copilot at d354c9b

Add tests for big.Int.is_power_of_2 method. The tests verify the method's functionality on various positive and negative integers.

🤖 Generated by Copilot at d354c9b

  • Add a constant is_power_of_2_test_data to provide test cases for the is_power_of_2 method of the big.Int type (link)
  • Add a test function test_is_power_of_2 to verify the functionality and accuracy of the is_power_of_2 method of the big.Int type using the is_power_of_2_test_data constant (link)

@medvednikov medvednikov merged commit 6fef2c2 into vlang:master Jul 19, 2023
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