scala part 1 init

This commit is contained in:
2025-10-14 12:19:01 +02:00
parent 6a786891dd
commit c9676177bd
6 changed files with 36 additions and 0 deletions

View File

@@ -15,6 +15,9 @@
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
mozart2-binary
sbt
scala
scalafmt
];
shellHook = ''
echo "enjoy m*oz*art2"

4
scala_project_2025/part1/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
target/
project/
.bloop/
.metals/

View File

@@ -0,0 +1,2 @@
version = "3.9.6"
runner.dialect = scala3

View File

@@ -0,0 +1,8 @@
## sbt project compiled with Scala 3
### Usage
This is a normal sbt project. You can compile code with `sbt compile`, run it with `sbt run`, and `sbt console` will start a Scala 3 REPL.
For more information on the sbt-dotty plugin, see the
[scala3-example-project](https://github.com/scala/scala3-example-project/blob/main/README.md).

View File

@@ -0,0 +1,10 @@
val scala3Version = "3.7.3"
lazy val root = project
.in(file("."))
.settings(
name := "part1",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
libraryDependencies += "org.scalameta" %% "munit" % "1.0.0" % Test
)

View File

@@ -0,0 +1,9 @@
// For more information on writing tests, see
// https://scalameta.org/munit/docs/getting-started.html
class MySuite extends munit.FunSuite {
test("example test that succeeds") {
val obtained = 42
val expected = 42
assertEquals(obtained, expected)
}
}