Replies: 3 comments
-
Hey, sorry for late answer. I have the 2 files you listed in a dir: tree .
# .
# ├── first.sc
# └── first.test.scala
#
# 1 directory, 2 files The test is running as expected: scala-cli test .
# Compiling project (Scala 3.4.2, JVM (17))
# Compiled project (Scala 3.4.2, JVM (17))
# Compiling project (test, Scala 3.4.2, JVM (17))
# Compiled project (test, Scala 3.4.2, JVM (17))
# FirstTest:
# 5
# - Sum 2 + 4 is 6
# Run completed in 61 milliseconds.
# Total number of tests run: 1
# Suites: completed 1, aborted 0
# Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
# All tests passed. @jiramares let me know how to reproduce the problem, in case I'm missing something. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am sorry it looks that I have tried to simplify example too much. First I don't know how to reference function in script if the script name contains '-' (minus). So, rename file Second smaller problem is that the jirka |
Beta Was this translation helpful? Give feedback.
-
I am sorry I don't know why it closed so this comment is only to open. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am using scala-cli for scripting. I am creating runnable first.sc files and I would like to test function located in it. So I created in same directory first.test.scala.
first.sc:
first.test.scala:
But the first (in first.sum(2, 4)) is not resolved
Beta Was this translation helpful? Give feedback.
All reactions