-
Notifications
You must be signed in to change notification settings - Fork 68
/
BigStructSmokeSpec.scala
34 lines (28 loc) · 1.25 KB
/
BigStructSmokeSpec.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright 2021-2023 Disney Streaming
*
* Licensed under the Tomorrow Open Source Technology License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://disneystreaming.github.io/TOST-1.0.txt
*
* 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 smithy4s
import munit._
import smithy4s.internals.SchemaDescriptionDetailed
class BigStructSmokeSpec() extends FunSuite {
type Repr[A] = String
test("Big structures do have a schema") {
val expected =
"structure BigStruct(a1: Int, a2: Int, a3: Int, a4: Int, a5: Int, a6: Int, a7: Int, a8: Int, a9: Int, a10: Int, a11: Int, a12: Int, a13: Int, a14: Int, a15: Int, a16: Int, a17: Int, a18: Int, a19: Int, a20: Int, a21: Int, a22: Int, a23: Option[String], a24: Int)"
val schemaRepr =
smithy4s.example.BigStruct.schema.compile(SchemaDescriptionDetailed)
expect.same(schemaRepr, expected)
}
}