-
Notifications
You must be signed in to change notification settings - Fork 25
Updated Map tests #322
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
Updated Map tests #322
Conversation
|
The randomized test is really resource heavy. I had to increase the timeout to fit this in. Since we are going to replace this script soon, I think this temporary solution is sufficient |
ppolesiuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
| export DBL_LIB="lib/" | ||
|
|
||
| TIMEOUT=1.0 | ||
| TIMEOUT=3.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The timeout should be increased selectively, only for stdlib tests. For functional tests, it's better to keep it small, as tested programs are very tiny. However, we can fix it once #312 will be merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the stdlib Map tests by migrating them from a standalone simple_test file into the shared Testing-framework-based stdlib test suite, and adjusts the test runner timeout to accommodate the randomized Map test.
Changes:
- Remove the legacy Map test file from the
test/test_suiterunner and deletetest/stdlib/stdlib0008_Map.fram. - Add new
test/stdlib/Map.framusing theTestingframework and include it intest/stdlib/TestAll.fram. - Increase
test.shper-test timeout from 1s to 3s.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/test_suite | Stops running the removed legacy Map test file directly. |
| test/stdlib/stdlib0008_Map.fram | Deletes the old standalone Map test. |
| test/stdlib/TestAll.fram | Imports the new test/stdlib/Map.fram module so its tests run under the stdlib test aggregation. |
| test/stdlib/Map.fram | Reintroduces Map coverage using Testing’s testSuite/testCase structure, including the prior randomized test logic. |
| test.sh | Raises the timeout to reduce false failures from longer-running tests (notably randomized ones). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.