Skip to content

string and char questions #309

@miguel-negrao

Description

@miguel-negrao

I have some questions about strings and chars.

gen::character sometimes returns the null character \0. Is this expected ? [edit] ignore, it does not, a char generator does.

Most of the characters in the strings generated by gen::string are not printable. Is this expected ?

�򁓰ӈi#5¢o�kO�)���'���9�'�<E�5��8��'�
string: '>�<0� �M*����oo��l�|M�c'
�&���Z�'('d���0�`�����'
string: 'w]��3��k��(0�/%����ߧ#'߷�=����;���9�27�'
R�����Ŭ4L�����'��r�
string: '�'Ž���m��6(�ӂ���V��uP̦'$0���7� `e����!3a��0�������'
string: '�F*�$
              ��yӍnF��� ��v�|P��S$Y�:O�"U�,�|F����s�4+� 1=��Z����Bz��7����'
string: '�����9�,��@\��&/p20=���1�
Z [��&����+5�5����f�"���(�M�&�+�����'
string: '����*
              :g\���W�7�$���?ݹ?1�(T���0ܻ-ǨI��'
string: '��_��"�q
��#@�[2��|���

Is the generator generating valid ASCII chars, or any char at all (full 255 values) ?

thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions