crystal-lang / shards

Dependency manager for the Crystal language
Other
763 stars 100 forks source link

Fix unexpected token compiler error match #532

Closed straight-shoota closed 2 years ago

straight-shoota commented 2 years ago

After crystal-lang/crystal#11473 the following spec in shards' spec suite is broken:

  1) build reports error when target failed to compile
     Failure/Error: ex.stdout.should contain("unexpected token: ...")

       Expected:   "I: Dependencies are satisfied\nI: Building: app\nE: Error target app failed to compile:\n\e[33mUsing compiled compiler at /home/johannes/Projects/crystal-lang/crystal/.build/crystal\e[0m\nIn src/cli.cr:1:8\n\n 1 | a = ......\n            ^\nError: unexpected token: \"...\"\n\n"
       to include: "unexpected token: ..."

     # spec/integration/build_spec.cr:70