-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tuple type in scala3 client macro (#214)
- Loading branch information
Showing
4 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package test3 | ||
|
||
import chameleon.* | ||
import chameleon.ext.zioJson.given | ||
import sloth.* | ||
import zio.json.* | ||
|
||
import org.scalatest.freespec.AsyncFreeSpec | ||
import org.scalatest.matchers.must.Matchers | ||
|
||
import scala.concurrent.Future | ||
|
||
trait Api { | ||
def single(page: Int): Future[String] | ||
def list(page: Int, limit: Int): Future[String] | ||
} | ||
|
||
class Sloth3Spec extends AsyncFreeSpec with Matchers { | ||
|
||
"compile client" in { | ||
val client = Client[String, Future](null) | ||
client.wire[Api] | ||
|
||
succeed | ||
} | ||
|
||
"compile router" in { | ||
val router = Router[String, Future].route[Api](null) | ||
|
||
succeed | ||
} | ||
} |