@@ -105,3 +105,73 @@ sum5->For.itAsync("itAsync: sum %i+%i+%i+%i=%s", async ((a, b, c, d, sum), t) =>
105105 t -> expect ((a + b + c + d )-> Js .Int .toString )-> Expect .toBe (sum )
106106 t -> expect ((a + b + c + d + 1 )-> Js .Int .toString )-> Expect .not -> Expect .toBe (sum )
107107})
108+
109+ sumObj -> For .describe ("sum $a+$b=$sum" , i => {
110+ test ("inner test" , t => {
111+ t -> expect (i ["a" ] + i ["b" ])-> Expect .toBe (i ["sum" ])
112+ t -> expect (i ["a" ] + i ["b" ] + 1 )-> Expect .not -> Expect .toBe (i ["sum" ])
113+ })
114+ })
115+
116+ sum2 -> For .describe ("%i=%s" , ((a , b )) => {
117+ test ("inner test" , t => {
118+ t -> expect (a -> Js .Int .toString )-> Expect .toBe (b )
119+ t -> expect ((a + 1 )-> Js .Int .toString )-> Expect .not -> Expect .toBe (b )
120+ })
121+ })
122+
123+ sum3 -> For .describe ("sum %i+%i=%s" , ((a , b , sum )) => {
124+ test ("inner test" , t => {
125+ t -> expect ((a + b )-> Js .Int .toString )-> Expect .toBe (sum )
126+ t -> expect ((a + b + 1 )-> Js .Int .toString )-> Expect .not -> Expect .toBe (sum )
127+ })
128+ })
129+
130+ sum4 -> For .describe ("sum %i+%i+%i=%s" , ((a , b , c , sum )) => {
131+ test ("inner test" , t => {
132+ t -> expect ((a + b + c )-> Js .Int .toString )-> Expect .toBe (sum )
133+ t -> expect ((a + b + c + 1 )-> Js .Int .toString )-> Expect .not -> Expect .toBe (sum )
134+ })
135+ })
136+
137+ sum5 -> For .describe ("sum %i+%i+%i+%i=%s" , ((a , b , c , d , sum )) => {
138+ test ("inner test" , t => {
139+ t -> expect ((a + b + c + d )-> Js .Int .toString )-> Expect .toBe (sum )
140+ t -> expect ((a + b + c + d + 1 )-> Js .Int .toString )-> Expect .not -> Expect .toBe (sum )
141+ })
142+ })
143+
144+ sumObj -> For .describeAsync ("sum $a+$b=$sum" , async i => {
145+ test ("inner test" , t => {
146+ t -> expect (i ["a" ] + i ["b" ])-> Expect .toBe (i ["sum" ])
147+ t -> expect (i ["a" ] + i ["b" ] + 1 )-> Expect .not -> Expect .toBe (i ["sum" ])
148+ })
149+ })
150+
151+ sum2 -> For .describeAsync ("%i=%s" , async ((a , b )) => {
152+ test ("inner test" , t => {
153+ t -> expect (a -> Js .Int .toString )-> Expect .toBe (b )
154+ t -> expect ((a + 1 )-> Js .Int .toString )-> Expect .not -> Expect .toBe (b )
155+ })
156+ })
157+
158+ sum3 -> For .describeAsync ("sum %i+%i=%s" , async ((a , b , sum )) => {
159+ test ("inner test" , t => {
160+ t -> expect ((a + b )-> Js .Int .toString )-> Expect .toBe (sum )
161+ t -> expect ((a + b + 1 )-> Js .Int .toString )-> Expect .not -> Expect .toBe (sum )
162+ })
163+ })
164+
165+ sum4 -> For .describeAsync ("sum %i+%i+%i=%s" , async ((a , b , c , sum )) => {
166+ test ("inner test" , t => {
167+ t -> expect ((a + b + c )-> Js .Int .toString )-> Expect .toBe (sum )
168+ t -> expect ((a + b + c + 1 )-> Js .Int .toString )-> Expect .not -> Expect .toBe (sum )
169+ })
170+ })
171+
172+ sum5 -> For .describeAsync ("sum %i+%i+%i+%i=%s" , async ((a , b , c , d , sum )) => {
173+ test ("inner test" , t => {
174+ t -> expect ((a + b + c + d )-> Js .Int .toString )-> Expect .toBe (sum )
175+ t -> expect ((a + b + c + d + 1 )-> Js .Int .toString )-> Expect .not -> Expect .toBe (sum )
176+ })
177+ })
0 commit comments