basic sort functionatlity, need performance improvment #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request makes several updates to the Zig project, focusing on improving the build process, enhancing test coverage, and restructuring the project files. The most important changes include updating the build script, modifying test workflows, adding new functionality to utility functions, and restructuring the project directory.
Build and Workflow Improvements:
Project0-word/build.zig
: Updated the build script to include detailed comments, added steps for running and testing the application, and modified the paths of source files..github/workflows/test-zig-files.yml
: Updated the workflow to test files in thesrc
directory instead of the root directory.Project Restructuring:
src
directory for better organization:Project0-word/P0-tests.zig
toProject0-word/src/P0-tests.zig
Project0-word/count_words.zig
toProject0-word/src/count_words.zig
Project0-word/main.zig
toProject0-word/src/main.zig
Project0-word/utils.zig
toProject0-word/src/utils.zig
Enhancements to Utility Functions:
Project0-word/src/utils.zig
: Added new functions for sorting files and improved existing functions with better error handling and logging. [1] [2]Test Coverage:
Project0-word/src/P0-tests.zig
: Updated test cases to reflect changes in file paths and added new test cases for enhanced coverage.Project0-word/src/utils.zig
: Added tests for new utility functions to ensure correctness.Additional Changes:
Project0-word/build.zig.zon
: Added a new configuration file for package management and dependencies.Project0-word/plain.txt
: Removed unnecessary content from the file.These changes collectively improve the project's organization, build process, and test coverage, making it easier to maintain and extend in the future.