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

CSE Machine: Overlapping drawing of pairs #2716

Open
deseansoh opened this issue Nov 19, 2023 · 1 comment · May be fixed by #2936
Open

CSE Machine: Overlapping drawing of pairs #2716

deseansoh opened this issue Nov 19, 2023 · 1 comment · May be fixed by #2936
Labels
Bug Something isn't working

Comments

@deseansoh
Copy link

When running the following code and attempting to display the environmental model in the CSE machine, the pairs constructed overlap with one another. The arrows are pointing correctly though.

const hh1 = pair(undefined, undefined);
const hh2 = pair(undefined, undefined);
const hh3 = pair(undefined, undefined);

set_head(hh1, hh1);
set_tail(hh1, hh1);

set_head(hh2, pair(undefined, hh2));
set_head(head(hh2), head(hh2));
set_tail(hh2, hh2);

set_head(hh3, pair(hh3,hh3));
set_tail(hh3, head(hh3));

Bug

@gok99 gok99 added the Bug Something isn't working label Nov 19, 2023
@martin-henz
Copy link
Member

I can confirm that the bug exists. Here is the share link:
https://share.sourceacademy.org/t5pi8

@CZX123 CZX123 linked a pull request Apr 19, 2024 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants