-
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.
Signed-off-by: Rohith-Raju <[email protected]> update(LinkedList): added more tests Signed-off-by: Rohith-Raju <[email protected]>
- Loading branch information
1 parent
1cba9f1
commit e61d85c
Showing
7 changed files
with
159 additions
and
43 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/testing/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "C/C++: clang build active file", | ||
"command": "/opt/homebrew/opt/llvm/bin/clang", | ||
"args": [ | ||
"-fcolor-diagnostics", | ||
"-fansi-escape-codes", | ||
"-g", | ||
"${file}", | ||
"-o", | ||
"${fileDirname}/${fileBasenameNoExtension}", | ||
"--std=c++17" | ||
], | ||
"options": { | ||
"cwd": "${fileDirname}" | ||
}, | ||
"problemMatcher": [ | ||
"$gcc" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"detail": "Task generated by Debugger." | ||
} | ||
], | ||
"version": "2.0.0" | ||
} |
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