Open kojix2 opened 3 years ago
Hello.
I found some strange behavior of Numo::Bit. Is this some kind of bug?
Create a Numo::Bit object.
b = Numo::Bit.ones(1,2)
Call to_string. The results are inconsistent. If you run irb again, you will get a different result.
to_string
b.to_string # "W" or # "#" or # "\x87" ... etc
I understood it somehow. Maybe this is not a bug. We need at least 8 bits to call to_string.
Hello.
I found some strange behavior of Numo::Bit. Is this some kind of bug?
Step to reproduce
Create a Numo::Bit object.
Call
to_string
. The results are inconsistent. If you run irb again, you will get a different result.