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

feat: implement sum #121

Merged
merged 16 commits into from
Nov 30, 2024
Merged

feat: implement sum #121

merged 16 commits into from
Nov 30, 2024

Conversation

igrekus
Copy link
Contributor

@igrekus igrekus commented Dec 22, 2023

Implement the sum command, add tests.

feat: implement buffered read for BSD algorithm

feat: implement buffered read for SysV algorithm

ref: extract block count fns

chore: clean uo todo

feat: add tests

ref: split printing and data collect

feat: add sysv quirk tests

feat: add rjust fn

test: add bsd main behanior tests

feat: add zero padding to BSD sum, add tests

feat: wide block count col
@JalonSolov
Copy link
Contributor

Close/re-open to force CI to re-run.

@JalonSolov JalonSolov closed this Jan 26, 2024
@JalonSolov JalonSolov reopened this Jan 26, 2024
@JalonSolov
Copy link
Contributor

wc and wc_test.v have been reformatted and updated to compile cleanly with latest V, so they can be removed from this PR.

@spytheman spytheman force-pushed the igrekus/implement-sum branch from 90c810d to df4d8b0 Compare April 7, 2024 13:23
@spytheman
Copy link
Member

(rebase over current main)

src/sum/sum.v Outdated Show resolved Hide resolved
@JalonSolov
Copy link
Contributor

Close/re-open to force CI to re-run.

@JalonSolov JalonSolov closed this May 18, 2024
@JalonSolov JalonSolov reopened this May 18, 2024
@igrekus igrekus force-pushed the igrekus/implement-sum branch from 7148d2b to db1579a Compare June 3, 2024 14:00
@JalonSolov JalonSolov closed this Nov 28, 2024
@JalonSolov JalonSolov reopened this Nov 28, 2024
syrmel and others added 5 commits November 29, 2024 22:20
Can't use echo in Windows as it produces different outputs; example: `echo hhh | od -t x1`

Linux
0000000 68 68 68 0a
0000004

Windows
0000000 68 68 68 20 0d 0a
0000006
Avoid `echo` because it behaves differently in Windows
Windows emits new lines as \r\n but the reference result was calculated on *nix where it was only \n
@JalonSolov JalonSolov merged commit 13a874e into vlang:main Nov 30, 2024
4 checks passed
@igrekus igrekus deleted the igrekus/implement-sum branch December 28, 2024 15:29
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.

4 participants