Skip to content

Commit 271b27c

Browse files
committed
Added clockhands to the test
1 parent 5e580a0 commit 271b27c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cpp/test.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ g++ -std=c++20 "$PSScriptRoot\anagrams.cpp" && . $run rats |
1616
Assert-MatchTests &&
1717
g++ -std=c++20 "$PSScriptRoot\animals.cpp" && . $run &&
1818
g++ -std=c++20 "$PSScriptRoot\basic_types.cpp" && . $run &&
19+
g++ -std=c++20 "$PSScriptRoot\clockhands.cpp" && . $run |
20+
Compare-Object (Get-Content "$PSScriptRoot\..\test\clockhands_expected") |
21+
Assert-MatchTests &&
1922
g++ -std=c++20 "$PSScriptRoot\if_then_else.cpp" && . $run &&
2023
g++ -std=c++20 "$PSScriptRoot\maps.cpp" && . $run &&
2124
g++ -std=c++20 "$PSScriptRoot\permutations.cpp" && . $run I like carrots |

cpp/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
g++ -std=c++20 anagrams.cpp && ./a.out rats | diff ../test/rats_heap_expected - && \
33
g++ -std=c++20 animals.cpp && ./a.out && \
44
g++ -std=c++20 basic_types.cpp && ./a.out && \
5+
g++ -std=c++20 clockhands.cpp && ./a.out | diff ../test/clockhands_expected - && \
56
g++ -std=c++20 if_then_else.cpp && ./a.out && \
67
g++ -std=c++20 maps.cpp && ./a.out && \
78
g++ -std=c++20 permutations.cpp && ./a.out I like carrots | diff ../test/carrots_expected - && \

0 commit comments

Comments
 (0)