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 order of expected elements in smallest elements test #194

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blakepat
Copy link

@blakepat blakepat commented Jan 11, 2025

This PR fixes the order of elements in the "2 smallest elements" test case to maintain the original sequence order.

Changed:
smallestElements(list, 2) shouldBeEqualTo listOf(3, 1)
To:
smallestElements(list, 2) shouldBeEqualTo listOf(1, 3)

The order [1, 3] is correct because it preserves the order these elements appeared in the original list [5, 1, 3].

Note: The build is failing due to missing Test classes in other challenge files (anycallback, advancedlru). These issues should be addressed separately as they are unrelated to this specific test fix.

@blakepat blakepat changed the title Fix expected order in smallest elements test Fix order of expected elements in smallest elements test Jan 11, 2025
@blakepat blakepat force-pushed the fix-smallest-elements-test branch from 9dff22d to 3c4c262 Compare January 11, 2025 20:33
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.

1 participant