-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- memperbaiki unitesting - menambahkan unitesting untuk beberapa fungsi - menambahkan dokumentasi - menambahkan kostum error Signed-off-by: slowy07 <[email protected]>
- Loading branch information
Showing
7 changed files
with
272 additions
and
47 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -28,4 +28,4 @@ jobs: | |
- name: testing kodenya | ||
run: | | ||
pytest . --verbose | ||
pytest testing/main_test.py --verbose |
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,8 +1,31 @@ | ||
# OpenSeries | ||
|
||
![banner](.github/openSeries.png) | ||
|
||
Project Untuk Menghitung Segala Jenis Persamaan atau Rumus-Rumus yang terdapat pada bangku sekolah (SMA/SMK/Sederajat). | ||
Project ini bertujuan untuk memudahkan siswa dalam menghitung persamaan atau problem-problem yang terdapat pada pelajaran sekolah (cheat egine untuk Sekolah). | ||
|
||
**menghitung nilai probabilitas dari suatu kejadian** | ||
|
||
```python | ||
nilai_A = 4 | ||
nilai_S = 20 | ||
|
||
print("menghitung probabilitas suatu kejadian") | ||
print(f"dengan jumlah hasil yang menguntungkan :{nilai_A}") | ||
print(f"dan dengan ukuran ruang sampel {nilai_S}") | ||
print( | ||
f"probabilitas dari kejadiannya adalah: {matematika.peluang_kejadian(nilai_A, nilai_S)}\n" | ||
) | ||
``` | ||
|
||
## Requirements | ||
|
||
Untuk Menjalankan Library ini, kamu harus Memiliki Python dengan versi: 3.11.6 hingga 3.12. | ||
|
||
## Installasi | ||
kamu bisa menginstall package ``OpenSeries`` via pip dengan cara | ||
|
||
```bash | ||
pip install git+https://github.com/bellshade/OpenSeries | ||
``` |
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,10 +1,30 @@ | ||
import unittest | ||
from testing.matematika_test import TestKelilingLingkaran | ||
from testing.matematika_test import ( | ||
TestKelilingLingkaran, | ||
TestRadianKeDerajat, | ||
TestDiameterLingkaran, | ||
TestPersamaanLinear, | ||
TestRataRata, | ||
TestFaktorial, | ||
TestPermutasi, | ||
TestKombinasi, | ||
TestFPB, | ||
TestFaktorPrima, | ||
) | ||
|
||
if __name__ == "__main__": | ||
testing_keliling_lingkaran = unittest.TestLoader().loadTestsFromTestCase( | ||
TestKelilingLingkaran | ||
testing_matematika = unittest.TestLoader().loadTestsFromTestCase( | ||
TestKelilingLingkaran, | ||
TestRadianKeDerajat, | ||
TestDiameterLingkaran, | ||
TestPersamaanLinear, | ||
TestRataRata, | ||
TestFaktorial, | ||
TestPermutasi, | ||
TestKombinasi, | ||
TestFPB, | ||
TestFaktorPrima, | ||
) | ||
all_tests = unittest.TestSuite([testing_keliling_lingkaran]) | ||
all_tests = unittest.TestSuite([testing_matematika]) | ||
|
||
unittest.TextTestRunner(verbosity=2).run(all_tests) |
Oops, something went wrong.