11import sys
2+
23sys .path .insert (0 , '.' )
4+ sys .path .insert (0 , 'src' )
35
46import sqlite_blaster_python as m
57
68def test_basic ():
7- col_names = [ "key" , " value"]
9+ col_names = "key, value"
810 sqib = m .sqlite_index_blaster (2 , 1 , col_names , "imain" , 4096 , 40 , "kv_idx.db" )
911 sqib .put_string ("hello" , "world" )
1012 assert sqib .get_string ("hello" , "not_found" ) == "world"
@@ -13,7 +15,7 @@ def test_basic():
1315
1416def test_table ():
1517 import sqlite_blaster_python
16- col_names = [ "student_name" , " age" , " maths_marks" , " physics_marks" , " chemistry_marks" , " average_marks"]
18+ col_names = "student_name, age, maths_marks, physics_marks, chemistry_marks, average_marks"
1719 sqib = sqlite_blaster_python .sqlite_index_blaster (6 , 2 , col_names , "student_marks" , 4096 , 40 , "student_marks.db" )
1820 test_rec1 = ["Robert" , 19 , 80 , 69 , 98 , round ((80 + 69 + 98 )/ 3 , 2 )]
1921 sqib .put_rec (test_rec1 )
@@ -28,4 +30,4 @@ def test_table():
2830 sqib .close ()
2931
3032def test_main ():
31- assert m .__version__ == "0.0.1 "
33+ assert m .__version__ == "0.0.4 "
0 commit comments