rewrite files under the directory `scripts/editing/`. also added some tests to make sure the code works
rewrite files under the directory
scripts/editing/. also added some tests to make sure the code works