Test a shipped feature that holds a file whose name is not UTF-8
This commit is contained in:
@@ -32,8 +32,8 @@ HALVE = "package calc\n\nfunc Halve(a int) int {\n\treturn a / 2\n}\n"
|
||||
|
||||
class ShippedFeaturesCase(BenchOfTasksCase):
|
||||
"""BenchOfTasksCase's checkout, whose default branch then shipped four items, each in a chunk rebased onto it, oldest first:
|
||||
item 8 wrote the line of Twice that the head rewrites, item 7 added Halve with a binary file, its test and a link to that
|
||||
test, item 9 changed the README alone, and item 10 added only a test that passes without it. The head branches off after
|
||||
item 8 wrote the line of Twice that the head rewrites, item 7 added Halve with a binary file, a file whose name is not UTF-8, its test and a link to
|
||||
that test, item 9 changed the README alone, and item 10 added only a test that passes without it. The head branches off after
|
||||
them. The checkout's config writes a diff without the `a/` and `b/` that `git apply` strips."""
|
||||
|
||||
def setUp(self):
|
||||
@@ -55,6 +55,7 @@ class ShippedFeaturesCase(BenchOfTasksCase):
|
||||
self.landed(3, "Test Halve")
|
||||
(self.repo / "halve.go").write_text(HALVE)
|
||||
(self.repo / "halve.bin").write_bytes(b"\x00\xff")
|
||||
(self.repo / os.fsdecode(b"halv\xe9.txt")).write_text("A name that is not UTF-8.\n")
|
||||
os.symlink("halve_test.go", self.repo / "linked_test.go")
|
||||
self.plan(9, 10)
|
||||
self.landed(3, "Add Halve", "Finish item 7 in the plan")
|
||||
|
||||
Reference in New Issue
Block a user