Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed check_equal of special characters. #722

Merged
merged 1 commit into from
May 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions vunit/vhdl/check/src/check.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -2201,9 +2201,13 @@ package body check_pkg is
function to_string (
constant data : character)
return string is
constant full_string : string(1 to 3) := character'image(data);
constant full_string : string := character'image(data);
begin
return full_string(2 to 2);
if (full_string(full_string'left) = ''') and (full_string(full_string'right) = ''') then
return full_string(full_string'left + 1 to full_string'right - 1);
else
return full_string;
end if;
end function to_string;

function max (
Expand Down