cereja-project / cereja

Cereja is a bundle of useful functions we don't want to rewrite and .. just pure fun!
MIT License
28 stars 12 forks source link

FileIO bugs #157

Closed jlsneto closed 3 months ago

jlsneto commented 3 years ago
import cereja as cj

# Bug 1
file = cj.FileIO.create('./test.txt')
file[0] = 'line1'
file[1] = 'line2' # Raise exception IndexError: list assignment index out of range

# Bug 2
print(file.path) # /test.txt
file.set_path('./test2.txt')
file.undo() # isn't reset path altered
print(file.path) # /test2.txt