commit 7312f8a2930bf2b73bddb3cd5302657b4adafa8f Author: LordBaryhobal Date: Tue Jan 28 12:52:19 2025 +0100 initial commit diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml new file mode 100644 index 0000000..f2d5a65 --- /dev/null +++ b/.gitea/workflows/tests.yaml @@ -0,0 +1,17 @@ +name: Python unit tests +run-name: ${{ gitea.actor }} is running unit tests +on: [push, workflow_dispatch] + +jobs: + unittests: + runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.13" + - name: Test with unittest + run: python -m unittest \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/examen2025.iml b/.idea/examen2025.iml new file mode 100644 index 0000000..ecb5148 --- /dev/null +++ b/.idea/examen2025.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..e60fd8a --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..a05eed9 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..8e9f264 --- /dev/null +++ b/README.md @@ -0,0 +1,177 @@ +# Examen 2025 + +--- +_**201.1 Algorithmes et Structures de données**_ + +![unit tests workflow](https://git.kb28.ch/HEL/AlgoDS-Examen2025/actions/workflows/tests.yaml/badge.svg) + +Voici mes réponses pour l'examen 2025 d'_Algorithmes et Structures de données_ ainsi que les tests unitaires fournis. + +## Exercice 1 + + + + + + + + + + + + + + + + + + +
But...
Input...
Output...
Signature + +```python +def function1( + *args +) -> Any: +``` + +
+ +[Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex1_.py) +/ +[Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex1.py) + + +## Exercice 2 + + + + + + + + + + + + + + + + + + +
But
Input...
Output...
Signature + +```python +def function2( + *args +) -> Any: +``` + +
+ +[Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex2_.py) +/ +[Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex2.py) + + +## Exercice 3 + + + + + + + + + + + + + + + + + + +
But...
Input...
Output...
Signature + +```python +def function3( + *args +) -> Any: +``` + +
+ +[Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex3_.py) +/ +[Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex3.py) + + +## Exercice 4 + + + + + + + + + + + + + + + + + + +
But...
Input...
Output...
Signature + +```python +def function4( + *args +) -> Any: +``` + +
+ +[Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex4_.py) +/ +[Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex4.py) + + +## Exercice 5 + + + + + + + + + + + + + + + + + + +
But...
Input...
Output...
Signature + +```python +def function5( + *args +) -> Any: +``` + +
+ +[Source](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/src/ex5_.py) +/ +[Tests](https://git.kb28.ch/HEL/AlgoDS-Examen2025/src/branch/main/tests/test_ex5.py) diff --git a/src/__init__.py b/src/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_ex1.py b/tests/test_ex1.py new file mode 100644 index 0000000..b24a888 --- /dev/null +++ b/tests/test_ex1.py @@ -0,0 +1,8 @@ +import unittest + +class MyTestCase(unittest.TestCase): + def test_simple1(self): + pass + +if __name__ == '__main__': + unittest.main() diff --git a/tests/test_ex2.py b/tests/test_ex2.py new file mode 100644 index 0000000..b24a888 --- /dev/null +++ b/tests/test_ex2.py @@ -0,0 +1,8 @@ +import unittest + +class MyTestCase(unittest.TestCase): + def test_simple1(self): + pass + +if __name__ == '__main__': + unittest.main() diff --git a/tests/test_ex3.py b/tests/test_ex3.py new file mode 100644 index 0000000..b24a888 --- /dev/null +++ b/tests/test_ex3.py @@ -0,0 +1,8 @@ +import unittest + +class MyTestCase(unittest.TestCase): + def test_simple1(self): + pass + +if __name__ == '__main__': + unittest.main() diff --git a/tests/test_ex4.py b/tests/test_ex4.py new file mode 100644 index 0000000..b24a888 --- /dev/null +++ b/tests/test_ex4.py @@ -0,0 +1,8 @@ +import unittest + +class MyTestCase(unittest.TestCase): + def test_simple1(self): + pass + +if __name__ == '__main__': + unittest.main() diff --git a/tests/test_ex5.py b/tests/test_ex5.py new file mode 100644 index 0000000..b24a888 --- /dev/null +++ b/tests/test_ex5.py @@ -0,0 +1,8 @@ +import unittest + +class MyTestCase(unittest.TestCase): + def test_simple1(self): + pass + +if __name__ == '__main__': + unittest.main()