mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
move ingested-file-bytes.roc test
This commit is contained in:
parent
b3f8c4dfd9
commit
7cbee42c2c
2 changed files with 3 additions and 3 deletions
12
crates/cli/tests/cli/ingested-file-bytes.roc
Normal file
12
crates/cli/tests/cli/ingested-file-bytes.roc
Normal file
|
@ -0,0 +1,12 @@
|
|||
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br" }
|
||||
|
||||
import pf.Stdout
|
||||
import "ingested-file.roc" as license : _ # A type hole can also be used here.
|
||||
|
||||
main =
|
||||
# Due to how license is used, it will be a List U8.
|
||||
license
|
||||
|> List.map Num.toU64
|
||||
|> List.sum
|
||||
|> Num.toStr
|
||||
|> Stdout.line!
|
|
@ -959,12 +959,12 @@ mod cli_run {
|
|||
#[cfg_attr(windows, ignore)]
|
||||
fn ingested_file_bytes() {
|
||||
test_roc_app(
|
||||
"examples/cli",
|
||||
"crates/cli/tests/cli",
|
||||
"ingested-file-bytes.roc",
|
||||
&[],
|
||||
&[],
|
||||
&[],
|
||||
"162088\n",
|
||||
"27101\n",
|
||||
UseValgrind::No,
|
||||
TestCliCommands::Run,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue