aboutsummaryrefslogtreecommitdiff
path: root/core/src/test
diff options
context:
space:
mode:
authorAmir Saeid <amir@glgdgt.com>2026-02-14 15:59:11 +0000
committerAmir Saeid <amir@glgdgt.com>2026-02-14 15:59:11 +0000
commit1fa98aed370d81b656d8e32c44f7bafa40be12b1 (patch)
tree03f45bfb9be63689b1058d979b5cba79905c1b00 /core/src/test
parent33c328fe9e08e642b28b310f9ab7f2fa704a3a2f (diff)
fmt
Diffstat (limited to 'core/src/test')
-rw-r--r--core/src/test/scala/com/codiff/fairstream/MainSuite.scala28
-rw-r--r--core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala9
2 files changed, 6 insertions, 31 deletions
diff --git a/core/src/test/scala/com/codiff/fairstream/MainSuite.scala b/core/src/test/scala/com/codiff/fairstream/MainSuite.scala
deleted file mode 100644
index 869c583..0000000
--- a/core/src/test/scala/com/codiff/fairstream/MainSuite.scala
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright 2026 codiff
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.codiff.fairstream
-
-import munit.CatsEffectSuite
-
-class MainSuite extends CatsEffectSuite {
-
- test("Main should exit succesfully") {
- val main = Main.run.attempt
- assertIO(main, Right(()))
- }
-
-}
diff --git a/core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala b/core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala
index 8ab73ba..e4cf406 100644
--- a/core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala
+++ b/core/src/test/scala/com/codiff/fairstream/PythagoreanSuite.scala
@@ -36,7 +36,8 @@ class PythagoreanSuite extends FunSuite {
test("Fair: pythagorean triples with left recursion") {
import Fair._
- lazy val number: Fair[Int] = mplus((Incomplete(number): Fair[Int]).map(_ + 1), unit(0))
+ lazy val number: Fair[Int] =
+ mplus((Incomplete(number): Fair[Int]).map(_ + 1), unit(0))
val triples = for {
i <- number
@@ -73,7 +74,8 @@ class PythagoreanSuite extends FunSuite {
_ <- guardF(i * i + j * j == k * k)
} yield (i, j, k)
- val results = FairT.runM[Eval, (Int, Int, Int)](None, Some(7), triples).value
+ val results =
+ FairT.runM[Eval, (Int, Int, Int)](None, Some(7), triples).value
assertEquals(results.length, 7)
assert(results.forall(isPythagorean))
}
@@ -92,7 +94,8 @@ class PythagoreanSuite extends FunSuite {
_ <- guardF(i * i + j * j == k * k)
} yield (i, j, k)
- val results = FairT.runM[Eval, (Int, Int, Int)](None, Some(27), triples).value
+ val results =
+ FairT.runM[Eval, (Int, Int, Int)](None, Some(27), triples).value
assertEquals(results.length, 27)
assert(results.forall(isPythagorean))
}