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

Fix push-last #1625

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Fix push-last #1625

merged 2 commits into from
Aug 2, 2024

Conversation

housel
Copy link
Member

@housel housel commented Jul 31, 2024

This fixes a mismatch between the DRM specification of push-last and the Open Dylan implementation.

According to the DRM, the push-last function is supposed to return the
new value added to a deque rather than the deque.

* sources/dylan/deque.dylan
  (trusted-push-last): Change to return the new element.
  (push-last): Change return signature to reflect returning
   the new element.

* sources/dylan/tests/collections.dylan
  (test test-<deque>-functions): New test (inspired by cmu-test-suite)
   for testing <deque>-specific functions and methods.
  (suite dylan-collections-test-suite): Add test-<deque>-functions.
@housel housel merged commit 544b540 into dylan-lang:master Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants