mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-17 05:26:47 +03:00
test(core): build the Latin-1 fixture from a string
This commit is contained in:
@@ -83,7 +83,7 @@ describe("Ripgrep", () => {
|
||||
Effect.gen(function* () {
|
||||
yield* Effect.promise(() => fs.writeFile(path.join(tmp.path, "utf8.txt"), "needle\n"))
|
||||
yield* Effect.promise(() =>
|
||||
fs.writeFile(path.join(tmp.path, "latin1.txt"), Buffer.from([...Buffer.from("needle caf"), 0xe9, 0x0a])),
|
||||
fs.writeFile(path.join(tmp.path, "latin1.txt"), Buffer.from("needle café\n", "latin1")),
|
||||
)
|
||||
|
||||
const ripgrep = yield* Ripgrep.Service
|
||||
|
||||
Reference in New Issue
Block a user