fossillogic / fossil-tofu

ToFu is a versatile, platform-independent library offering a comprehensive suite of data structures, algorithms, and a generic Tofu type, all designed to facilitate high-performance and reliable software development.
https://fossillogic.com/docs/tofu-the-flavorless/
Mozilla Public License 2.0
2 stars 1 forks source link

Positive and negitive sign handling #5

Open dreamer-coding opened 2 weeks ago

dreamer-coding commented 2 weeks ago

Describe the bug The difference between positive and negative signs when allocating a numeric value for ToFu might an issue that needs to be handled to avoid undefined behavior when minus sign is passed with any numeric values.

To Reproduce Add a - sign to a numeric when allocating a numeric ToFu node.

Expected behavior I expect this to create a negative numeric value when - symbol is appended at the start of the string input value and positive value when - is not in the sequence of digits making up the number

Desktop (please complete the following information):

dreamer-coding commented 1 day ago

Would end up adding test cases to put this concern to rest.