33## This file will read the test data from `data/GraphemeBreakTest-15.1.0.txt`
44## parse it and then generate the individual tests.
55app [main] {
6- pf: platform " https://github.com/roc-lang/basic-cli/releases/download/0.11 .0/SY4WWMhWQ9NvQgvIthcv15AUeA7rAIJHAHgiaSHGhdY .tar.br" ,
7- parser: " https://github.com/lukewilliamboswell/roc-parser/releases/download/0.7.1/MvLlME9RxOBjl0QCxyn3LIaoG9pSlaNxCa-t3BfbPNc .tar.br" ,
6+ pf: platform " https://github.com/roc-lang/basic-cli/releases/download/0.14 .0/dC5ceT962N_4jmoyoffVdphJ_4GlW3YMhAPyGPr-nU0 .tar.br" ,
7+ parser: " https://github.com/lukewilliamboswell/roc-parser/releases/download/0.7.2/1usTzOOACTpnkarBX0ED3gFESzR4ROdAlt1Llf4WFzo .tar.br" ,
88}
99
1010import pf.Task exposing [Task ]
@@ -21,7 +21,7 @@ Rule : [GB1, GB2, GB3, GB4, GB5, GB6, GB7, GB8, GB9, GB9a, GB9b, GB9c, GB11, GB1
2121TestTokens : List [BR Rule , NB Rule , CP CodePoint ]
2222
2323main =
24- when Arg . list ! |> List . get 1 is
24+ when Arg . list ! {} |> List . get 1 is
2525 Err _ -> Task . err (InvalidArguments " USAGE: roc run GraphemeTest.roc -- path/to/package/" )
2626 Ok arg -> File . writeUtf8 " $( Helpers . removeTrailingSlash arg) /GraphemeTest.roc" template
2727
@@ -213,17 +213,17 @@ zip : List [BR, NB, CP CodePoint], List [BR Rule, NB Rule] -> Result (List [BR R
213213zip = \first, second ->
214214 when (List . first first, List . first second) is
215215 (Ok BR , Ok (BR rule)) ->
216- next <- zip (List . dropFirst first 1 ) (List . dropFirst second 1 ) |> Result . try
216+ next = zip? (List . dropFirst first 1 ) (List . dropFirst second 1 )
217217
218218 Ok (List . append next (BR rule))
219219
220220 (Ok NB , Ok (NB rule)) ->
221- next <- zip (List . dropFirst first 1 ) (List . dropFirst second 1 ) |> Result . try
221+ next = zip? (List . dropFirst first 1 ) (List . dropFirst second 1 )
222222
223223 Ok (List . append next (NB rule))
224224
225225 (Ok (CP cp), _ ) ->
226- next <- zip (List . dropFirst first 1 ) second |> Result . try
226+ next = zip? (List . dropFirst first 1 ) second
227227
228228 Ok (List . append next (CP cp))
229229
0 commit comments