-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(LinkedList): added more tests
Signed-off-by: Rohith-Raju <[email protected]>
- Loading branch information
1 parent
e137c46
commit 264d268
Showing
6 changed files
with
82 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Build | ||
on: | ||
push: | ||
jobs: | ||
build-project: | ||
name: Build Project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
submodules: true | ||
|
||
- name: Configure Project | ||
uses: threeal/[email protected] | ||
with: | ||
c-compiler: gcc | ||
cxx-compiler: g++ | ||
cxx-flags: "--std=c++17" | ||
|
||
- name: Build Project | ||
run: cmake --build build | ||
|
||
- name: Run-Tests | ||
run: ./build/test/LinkedList_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
// | ||
// Created by Rohith on 1/10/24. | ||
// | ||
#include "LinkedList.h" | ||
#include "iostream" | ||
|
||
int main() { | ||
LinkedList<int> list = {1, 2, 3, 4, 5}; | ||
for (auto it = list.rbegin(); it != list.rend(); it++) { | ||
std::cout << *it; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule lib
updated
32 files