#!./libs/bats-core/bin/bats load 'libs/setup' @test "deleted middle" { $QL init cat > quilt_file.txt < quilt_file.txt < quilt_file.txt < quilt_file.txt < quilt_file.txt < quilt_file.txt HASH=`$QL patch create -a Author -m Msg --output-hash` $QL patch apply "$HASH" truncate --size 0 quilt_file.txt HASH=`$QL patch create -a Author -m Msg --output-hash` $QL patch apply "$HASH" $QL patch apply -R "$HASH" $QL patch apply "$HASH" } @test "replacement" { $QL init echo "Test" > quilt_file.txt HASH=`$QL patch create -a Author -m Msg --output-hash` $QL patch apply "$HASH" echo "Alt" > quilt_file.txt HASH=`$QL patch create -a Author -m Msg --output-hash` $QL patch apply "$HASH" $QL patch apply -R "$HASH" $QL patch apply "$HASH" }