initial commit
All checks were successful
Python unit tests / unittests (push) Successful in 7s

This commit is contained in:
Louis Heredero 2025-01-28 12:52:19 +01:00
commit 7312f8a293
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7
15 changed files with 279 additions and 0 deletions

View File

@ -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

8
.idea/.gitignore generated vendored Normal file
View File

@ -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

11
.idea/examen2025.iml generated Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
</content>
<orderEntry type="jdk" jdkName="Python 3.13" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

6
.idea/misc.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.13" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/examen2025.iml" filepath="$PROJECT_DIR$/.idea/examen2025.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

177
README.md Normal file
View File

@ -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
<table>
<tr>
<td><strong>But</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Input</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Output</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Signature</strong></td>
<td>
```python
def function1(
*args
) -> Any:
```
</td>
</tr>
</table>
[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
<table>
<tr>
<td><strong>But</strong></td>
<td></td>
</tr>
<tr>
<td><strong>Input</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Output</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Signature</strong></td>
<td>
```python
def function2(
*args
) -> Any:
```
</td>
</tr>
</table>
[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
<table>
<tr>
<td><strong>But</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Input</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Output</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Signature</strong></td>
<td>
```python
def function3(
*args
) -> Any:
```
</td>
</tr>
</table>
[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
<table>
<tr>
<td><strong>But</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Input</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Output</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Signature</strong></td>
<td>
```python
def function4(
*args
) -> Any:
```
</td>
</tr>
</table>
[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
<table>
<tr>
<td><strong>But</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Input</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Output</strong></td>
<td>...</td>
</tr>
<tr>
<td><strong>Signature</strong></td>
<td>
```python
def function5(
*args
) -> Any:
```
</td>
</tr>
</table>
[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)

0
src/__init__.py Normal file
View File

0
tests/__init__.py Normal file
View File

8
tests/test_ex1.py Normal file
View File

@ -0,0 +1,8 @@
import unittest
class MyTestCase(unittest.TestCase):
def test_simple1(self):
pass
if __name__ == '__main__':
unittest.main()

8
tests/test_ex2.py Normal file
View File

@ -0,0 +1,8 @@
import unittest
class MyTestCase(unittest.TestCase):
def test_simple1(self):
pass
if __name__ == '__main__':
unittest.main()

8
tests/test_ex3.py Normal file
View File

@ -0,0 +1,8 @@
import unittest
class MyTestCase(unittest.TestCase):
def test_simple1(self):
pass
if __name__ == '__main__':
unittest.main()

8
tests/test_ex4.py Normal file
View File

@ -0,0 +1,8 @@
import unittest
class MyTestCase(unittest.TestCase):
def test_simple1(self):
pass
if __name__ == '__main__':
unittest.main()

8
tests/test_ex5.py Normal file
View File

@ -0,0 +1,8 @@
import unittest
class MyTestCase(unittest.TestCase):
def test_simple1(self):
pass
if __name__ == '__main__':
unittest.main()