Skip to content

string and char questions #309

Open
Open
@miguel-negrao

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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