Skip to content

Commit cadc8e5

Browse files
The test file has been updated to be compatible with the new changes.
1 parent ff87584 commit cadc8e5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
It is a example program made with Basic_Maths. It was written to serve as an example of (Basic_Maths) usage.
55
Sharing of the file named "test.py" in posts (blog/post etc. on the internet) has been given permission by @LinuxUsersLinuxMint. """
66

7-
from Basic_Maths.Basic_Maths import *
7+
import Basic_Maths
8+
from Basic_Maths.Lib.parameters import *
89

9-
LibAbout()
10-
all_math_operations("Select Operations: ","1. Addition","2. Extraction","3. Multiplication","4. Division","5. Percentage","6. FullDivision","7. TakingExponents","8. TakingRoots","9. SquareRoot","10. Mod","Select a transaction?: ","Enter the 1st number: ","Enter the 2nd number: ","Result:","Numbers cannot be zero in division!","Invalid Process!","1","add","addition","Addition","Toplama","2","ext","extraction","Extraction","Çıkarma","3","mul","multiplication","Multiplication","Çarpma","4","div","division","Division","Bölme","5","per","percentage","Percentage","Yüzdelik hesaplama","6","fulldiv","fulldivision","FullDivision","Tam bölüm","7","takingexp","takingexponents","TakingExponents","Üslü sayı alma","8","takingrt","takingroots","TakingRoots","Kök Alma","9","sqrt","squareroot","SquareRoot","Karekök","10","Mod","Modulus operation","","")
10+
Basic_Maths.LibAbout()
11+
Basic_Maths.all_math_operations("Select Operations: ","1. Addition","2. Extraction","3. Multiplication","4. Division","5. Percentage","6. FullDivision","7. TakingExponents","8. TakingRoots","9. SquareRoot","10. Mod","Select a transaction?: ","Enter the 1st number: ","Enter the 2nd number: ","Result:","Numbers cannot be zero in division!","Invalid Process!","1","add","addition","Addition","Toplama","2","ext","extraction","Extraction","Çıkarma","3","mul","multiplication","Multiplication","Çarpma","4","div","division","Division","Bölme","5","per","percentage","Percentage","Yüzdelik hesaplama","6","fulldiv","fulldivision","FullDivision","Tam bölüm","7","takingexp","takingexponents","TakingExponents","Üslü sayı alma","8","takingrt","takingroots","TakingRoots","Kök Alma","9","sqrt","squareroot","SquareRoot","Karekök","10","Mod","Modulus operation","","")
1112

12-
Addition(10,5,"RESULT:",save_cfg=ON,file_name="test.txt",save_err_msg="Error_msg")
13-
Extraction(20,5,"RESULT:",save_cfg=ON,file_name="test.txt",save_err_msg="Error_msg")
14-
Multiplication(30,5,"RESULT:",save_cfg=ON,file_name="test.txt",save_err_msg="Error_msg")
13+
Basic_Maths.Addition(10,5,"RESULT:",save_cfg=ON,file_name="test.txt",save_err_msg="Error_msg")
14+
Basic_Maths.Extraction(20,5,"RESULT:",save_cfg=ON,file_name="test.txt",save_err_msg="Error_msg")
15+
Basic_Maths.Multiplication(30,5,"RESULT:",save_cfg=ON,file_name="test.txt",save_err_msg="Error_msg")

0 commit comments

Comments
 (0)