Skip to content

Commit

Permalink
Update basic-cli to 0.15.0 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron authored Sep 2, 2024
1 parent a5893de commit 9ce0e4e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 14 deletions.
4 changes: 1 addition & 3 deletions bin/download-dependencies.roc
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
app [main] {
pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.14.0/dC5ceT962N_4jmoyoffVdphJ_4GlW3YMhAPyGPr-nU0.tar.br",
pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br",
unicode: "https://github.com/roc-lang/unicode/releases/download/0.1.2/vH5iqn04ShmqP-pNemgF773f86COePSqMWHzVGrAKNo.tar.br",
isodate: "https://github.com/imclerran/roc-isodate/releases/download/v0.5.0/ptg0ElRLlIqsxMDZTTvQHgUSkNrUSymQaGwTfv0UEmk.tar.br",
}

import pf.Task exposing [Task]

expect Bool.true

main =
Expand Down
3 changes: 1 addition & 2 deletions tests/all-fail/all-fail-test.roc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.14.0/dC5ceT962N_4jmoyoffVdphJ_4GlW3YMhAPyGPr-nU0.tar.br" }
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br" }

import pf.Task exposing [Task]

expect 2 + 2 == 5
expect "four" == "five"
Expand Down
2 changes: 1 addition & 1 deletion tests/all-fail/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "fail",
"message": "\u001b[1;36m── EXPECT FAILED in tests/all-fail/all-fail-test.roc ───────────────────────────\u001b[0m\n\nThis expectation failed:\n\n\u001b[1;36m5\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37mexpect 2 + 2 == 5\u001b[0m\n \u001b[1;31m^^^^^^^^^^^^^^^^^\u001b[0m\n\n\n\u001b[1;36m── EXPECT FAILED in tests/all-fail/all-fail-test.roc ───────────────────────────\u001b[0m\n\nThis expectation failed:\n\n\u001b[1;36m6\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37mexpect \"four\" == \"five\"\u001b[0m\n \u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n\n\u001b[1;31m2\u001b[0m failed and \u001b[1;32m0\u001b[0m passed."
"message": "\u001b[1;36m── EXPECT FAILED in tests/all-fail/all-fail-test.roc ───────────────────────────\u001b[0m\n\nThis expectation failed:\n\n\u001b[1;36m4\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37mexpect 2 + 2 == 5\u001b[0m\n \u001b[1;31m^^^^^^^^^^^^^^^^^\u001b[0m\n\n\n\u001b[1;36m── EXPECT FAILED in tests/all-fail/all-fail-test.roc ───────────────────────────\u001b[0m\n\nThis expectation failed:\n\n\u001b[1;36m5\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37mexpect \"four\" == \"five\"\u001b[0m\n \u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n\n\u001b[1;31m2\u001b[0m failed and \u001b[1;32m0\u001b[0m passed."
}
2 changes: 1 addition & 1 deletion tests/partial-fail/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "fail",
"message": "\u001b[1;36m── EXPECT FAILED in tests/partial-fail/partial-fail-test.roc ───────────────────\u001b[0m\n\nThis expectation failed:\n\n\u001b[1;36m6\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37mexpect \"hello\" == \"good bye\"\u001b[0m\n \u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n\n\u001b[1;31m1\u001b[0m failed and \u001b[1;32m1\u001b[0m passed."
"message": "\u001b[1;36m── EXPECT FAILED in tests/partial-fail/partial-fail-test.roc ───────────────────\u001b[0m\n\nThis expectation failed:\n\n\u001b[1;36m5\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37mexpect \"hello\" == \"good bye\"\u001b[0m\n \u001b[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^\u001b[0m\n\n\n\u001b[1;31m1\u001b[0m failed and \u001b[1;32m1\u001b[0m passed."
}
3 changes: 1 addition & 2 deletions tests/partial-fail/partial-fail-test.roc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.14.0/dC5ceT962N_4jmoyoffVdphJ_4GlW3YMhAPyGPr-nU0.tar.br" }
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br" }

import pf.Task exposing [Task]

expect 2 + 2 == 4
expect "hello" == "good bye"
Expand Down
3 changes: 1 addition & 2 deletions tests/success/success-test.roc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.14.0/dC5ceT962N_4jmoyoffVdphJ_4GlW3YMhAPyGPr-nU0.tar.br" }
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br" }

import pf.Task exposing [Task]

expect 2 + 2 == 4
expect "four" == "four"
Expand Down
2 changes: 1 addition & 1 deletion tests/syntax-error/expected_results.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"status": "error",
"message": "\u001b[1;36m── STATEMENT AFTER EXPRESSION in tests/syntax-error/syntax-error-test.roc ──────\u001b[0m\n\nI just finished parsing an expression with a series of definitions,\n\nand this line is indented as if it's intended to be part of that\nexpression:\n\n\u001b[1;36m1\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37mapp [main] { pf: platform \"https://github.com/roc-lang/basic-cli/releases/download/0.14.0/dC5ceT962N_4jmoyoffVdphJ_4GlW3YMhAPyGPr-nU0.tar.br\" }\u001b[0m\n\u001b[1;36m2\u001b[0m\u001b[1;36m│\u001b[0m\n\u001b[1;36m3\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37miMpOrT pf.Task exposing [Task]\u001b[0m\n\u001b[1;36m4\u001b[0m\u001b[1;36m│\u001b[0m\n\u001b[1;36m5\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37mexpect 2 + 2 == 5\u001b[0m\n \u001b[1;31m^\u001b[0m\n\nHowever, I already saw the final expression in that series of\ndefinitions."
"message": "\u001b[1;36m── UNFINISHED IMPORT in tests/syntax-error/syntax-error-test.roc ───────────────\u001b[0m\n\nI was partway through parsing an \u001b[1;32mimport\u001b[0m, but I got stuck here:\n\n\u001b[1;36m3\u001b[0m\u001b[1;36m│\u001b[0m \u001b[37mimport (\u001b[0m\n \u001b[1;31m^\u001b[0m\n\nI was expecting to see a module name, like:\n\n \u001b[1;33mimport BigNum\u001b[0m\n\nOr a package module name, like:\n\n \u001b[1;33mimport pf.Stdout\u001b[0m\n\nOr a file path to ingest, like:\n\n \u001b[1;33mimport \"users.json\" as users : Str\u001b[0m"
}
4 changes: 2 additions & 2 deletions tests/syntax-error/syntax-error-test.roc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.14.0/dC5ceT962N_4jmoyoffVdphJ_4GlW3YMhAPyGPr-nU0.tar.br" }
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br" }

iMpOrT pf.Task exposing [Task]
import (

expect 2 + 2 == 5
expect "four" == "five"
Expand Down

0 comments on commit 9ce0e4e

Please sign in to comment.