Skip to content

Commit

Permalink
Fix file encodings
Browse files Browse the repository at this point in the history
  • Loading branch information
vipentti committed Dec 19, 2023
1 parent d063b6e commit fa690e7
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/Visp.Compiler.UnitTests/ParsingTests.generated.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Ville Penttinen
// Copyright 2023 Ville Penttinen
// Distributed under the MIT License.
// https://github.com/vipentti/visp-fs/blob/main/LICENSE.md

Expand Down
2 changes: 1 addition & 1 deletion tests/Visp.ExecutionTests/ExecutionTests.generated.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Ville Penttinen
// Copyright 2023 Ville Penttinen
// Distributed under the MIT License.
// https://github.com/vipentti/visp-fs/blob/main/LICENSE.md

Expand Down
2 changes: 1 addition & 1 deletion visp/examples/aoc2023/day16.visp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


;; Copyright 2023 Ville Penttinen
;; Distributed under the MIT License.
;; https://github.com/vipentti/visp-fs/blob/main/LICENSE.md
Expand Down
2 changes: 1 addition & 1 deletion visp/examples/aoc2023/day17.visp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


;; Copyright 2023 Ville Penttinen
;; Distributed under the MIT License.
;; https://github.com/vipentti/visp-fs/blob/main/LICENSE.md
Expand Down
6 changes: 3 additions & 3 deletions visp/examples/aoc2023/init.visp
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@

(unless (.Exists File targetFile)
(printfn "new %s" targetFile)
(.WriteAllText System.IO.File targetFile (GetFileTemplate dayName) (+UTF8 System.Text.Encoding))
(.WriteAllText System.IO.File targetFile (GetFileTemplate dayName))
)

(unless (.Exists File exampleInputPath)
(printfn "new %s" exampleInputPath)
(.WriteAllText System.IO.File exampleInputPath "" (+UTF8 System.Text.Encoding))
(.WriteAllText System.IO.File exampleInputPath "")
)

(unless (.Exists File mainInputPath)
Expand All @@ -115,7 +115,7 @@
)
)
)
(do! (.WriteAllTextAsync System.IO.File mainInputPath content (+UTF8 System.Text.Encoding))))
(do! (.WriteAllTextAsync System.IO.File mainInputPath content)))

(Async.AwaitTask)
(Async.RunSynchronously)
Expand Down
2 changes: 1 addition & 1 deletion visp/examples/aoc2023/inputs/day16.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\....................\...|...................\/........|.....-......|....|................................/...
\....................\...|...................\/........|.....-......|....|................................/...
...../.../........|.........../......-........-...|.....|............\............./..../.\.\.................
|................./..../...............................................-....................\......../........
.................\.........../...-.............................-.......-......|................../.|..\.|.....
Expand Down
2 changes: 1 addition & 1 deletion visp/examples/aoc2023/inputs/day17.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
122122122221111223212131233223113223121333442231421433142332434134225233545342212211333112344344134442142433223412123123222112313121212221212
122122122221111223212131233223113223121333442231421433142332434134225233545342212211333112344344134442142433223412123123222112313121212221212
222211221221231312321313313211342343411142324132123121134452332445155511344312331454432211221131443421221311311132313213121113133212212121121
122122222123123112133333323222434211131132342432414314214452412531552132441122435121513351133144143322231342334223133211113332223112112212121
121121122123221323133133124121313314444133314314111435332133355334444335454224312242224554224323414441121443212123222111111321321211121211212
Expand Down
2 changes: 1 addition & 1 deletion visp/examples/aoc2023/inputs/day17_example.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
2413432311323
2413432311323
3215453535623
3255245654254
3446585845452
Expand Down
6 changes: 3 additions & 3 deletions visp/utils/test-generator.visp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ let ``%s %s`` () = TestUtils.runTest "%s"

(printfn "target %s" parserTargetDir)
;; (let output (genParserTests vispRoot files))
(.WriteAllText System.IO.File parserTargetFile output (+UTF8 System.Text.Encoding))
(.WriteAllText System.IO.File parserTargetFile output)
)

(fn WriteExecutionTests (projectRoot vispRoot files)
Expand All @@ -197,10 +197,10 @@ let ``%s %s`` () = TestUtils.runTest "%s"

(printfn "target %s" targetDir)
;; (let output (genParserTests vispRoot files))
(.WriteAllText System.IO.File targetfile output (+UTF8 System.Text.Encoding))
(.WriteAllText System.IO.File targetfile output)
;; (printfn "target %s" targetDir)
;; (let output (genExecutionTests vispRoot files))
;; (.WriteAllText System.IO.File targetfile output (+UTF8 System.Text.Encoding))
;; (.WriteAllText System.IO.File targetfile output)
)

(fn run ()
Expand Down

0 comments on commit fa690e7

Please sign in to comment.