From 1bfd0b1097a9ebab15cdab60071fc456b4fc6446 Mon Sep 17 00:00:00 2001 From: efim Date: Sun, 25 Jun 2023 13:02:59 +0000 Subject: [PATCH] init: attempting to joing metals and scala-cli --- scala-cli-metals-attempt/.project | 0 scala-cli-metals-attempt/src/main/scala/HelloWorld.scala | 2 ++ .../src/test/scala/MyTests.test.scala | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 scala-cli-metals-attempt/.project create mode 100644 scala-cli-metals-attempt/src/main/scala/HelloWorld.scala create mode 100644 scala-cli-metals-attempt/src/test/scala/MyTests.test.scala diff --git a/scala-cli-metals-attempt/.project b/scala-cli-metals-attempt/.project new file mode 100644 index 0000000..e69de29 diff --git a/scala-cli-metals-attempt/src/main/scala/HelloWorld.scala b/scala-cli-metals-attempt/src/main/scala/HelloWorld.scala new file mode 100644 index 0000000..065d752 --- /dev/null +++ b/scala-cli-metals-attempt/src/main/scala/HelloWorld.scala @@ -0,0 +1,2 @@ +@main +def hello() = println("Hello, world") diff --git a/scala-cli-metals-attempt/src/test/scala/MyTests.test.scala b/scala-cli-metals-attempt/src/test/scala/MyTests.test.scala new file mode 100644 index 0000000..4228ae8 --- /dev/null +++ b/scala-cli-metals-attempt/src/test/scala/MyTests.test.scala @@ -0,0 +1,8 @@ +//> using dep org.scalameta::munit::1.0.0-M1 + +class MyTests extends munit.FunSuite { + test("test") { + val x = 2 + assertEquals(x, 2) + } +}