11use " pony_test"
2- use " pony_check"
32use " collections"
43use stallion = " stallion"
54
65primitive \nodoc\ _TestRouterList
76 fun tests (test: PonyTest ) =>
8- test (Property1UnitTest [String ](_PropertyStaticRouteMatches ))
9- test (Property1UnitTest [String ](_PropertyUnregisteredReturnsMiss ))
10- test (Property1UnitTest [
11- (String , String )](_PropertyParamExtraction ))
12- test (Property1UnitTest [
13- (String , String , String )](_PropertyMultipleParams ))
14- test (Property1UnitTest [stallion.Method ](_PropertyMethodIsolation ))
15- test (Property1UnitTest [String ](_PropertyWildcardCapture ))
7+ test.property (_PropertyStaticRouteMatches )
8+ test.property (_PropertyUnregisteredReturnsMiss )
9+ test.property (_PropertyParamExtraction )
10+ test.property (_PropertyMultipleParams )
11+ test.property (_PropertyMethodIsolation )
12+ test.property (_PropertyWildcardCapture )
1613 test (_TestStaticPriorityOverParam )
1714 test (_TestRootPath )
1815 test (_TestOverlappingPrefixes )
1916 test (_TestWildcardSingleSegment )
2017 test (_TestTrailingSlashNormalization )
21- test (Property1UnitTest [
22- (Array [USize ] val , Array [USize ] val )](
23- _PropertyInsertionOrderInvariance ))
18+ test.property (_PropertyInsertionOrderInvariance )
2419 test (_TestHeadFallbackInRouter )
2520 test (_TestInterceptorAccumulation )
2621 test (_TestMissCarriesInterceptors )
@@ -51,7 +46,7 @@ primitive \nodoc\ _TestRouterList
5146 test (_TestDoubleSlashNormalization )
5247 test (_TestWildcardDoubleSlashNormalization )
5348 test (_TestSplitSegmentsEdgeCases )
54- test ( Property1UnitTest [ String ]( _PropertySplitJoinRoundTrip ) )
49+ test. property ( _PropertySplitJoinRoundTrip )
5550 test (_TestJoinRemainingSegments )
5651 test (_TestRoutesBeforeInterceptors )
5752 test (_TestMethodNotAllowedCarriesInterceptors )
@@ -113,7 +108,7 @@ primitive \nodoc\ _NoOpFactory
113108 RequestHandler (consume ctx).respond (stallion.StatusOK , " ok" )
114109
115110// --- Property tests ---
116- class \nodoc\ iso _PropertyStaticRouteMatches is Property1 [String ]
111+ class \nodoc\ iso _PropertyStaticRouteMatches is Property [String ]
117112 """
118113 A registered static route always matches.
119114 """
@@ -132,7 +127,7 @@ class \nodoc\ iso _PropertyStaticRouteMatches is Property1[String]
132127 h.fail (" expected match for " + path)
133128 end
134129
135- class \nodoc\ iso _PropertyUnregisteredReturnsMiss is Property1 [String ]
130+ class \nodoc\ iso _PropertyUnregisteredReturnsMiss is Property [String ]
136131 """
137132 An unregistered path returns _RouteMiss.
138133 """
@@ -151,7 +146,7 @@ class \nodoc\ iso _PropertyUnregisteredReturnsMiss is Property1[String]
151146 end
152147
153148class \nodoc\ iso _PropertyParamExtraction is
154- Property1 [(String , String )]
149+ Property [(String , String )]
155150 """
156151 `:name` segments are captured correctly.
157152 """
@@ -182,7 +177,7 @@ class \nodoc\ iso _PropertyParamExtraction is
182177 end
183178
184179class \nodoc\ iso _PropertyMultipleParams is
185- Property1 [(String , String , String )]
180+ Property [(String , String , String )]
186181 """
187182 Multiple `:name` segments are all extracted.
188183 """
@@ -221,7 +216,7 @@ class \nodoc\ iso _PropertyMultipleParams is
221216 end
222217
223218class \nodoc\ iso _PropertyMethodIsolation is
224- Property1 [stallion.Method ]
219+ Property [stallion.Method ]
225220 """
226221 A route registered for one method does not match another.
227222 """
@@ -259,7 +254,7 @@ class \nodoc\ iso _PropertyMethodIsolation is
259254 h.fail (" should be 405, not 404" )
260255 end
261256
262- class \nodoc\ iso _PropertyWildcardCapture is Property1 [String ]
257+ class \nodoc\ iso _PropertyWildcardCapture is Property [String ]
263258 """
264259 `*name` captures the remainder of the path.
265260 """
@@ -830,7 +825,7 @@ class \nodoc\ iso _Test405MergeDeduplicatesOverlappingMethods
830825
831826// --- Property test: insertion order invariance ---
832827class \nodoc\ iso _PropertyInsertionOrderInvariance is
833- Property1 [(Array [USize ] val , Array [USize ] val )]
828+ Property [(Array [USize ] val , Array [USize ] val )]
834829 """
835830 Route lookup results are independent of insertion order.
836831
@@ -1862,7 +1857,7 @@ class \nodoc\ iso _TestSplitSegmentsEdgeCases is UnitTest
18621857 h.fail (" param/wildcard segment access failed" )
18631858 end
18641859
1865- class \nodoc\ iso _PropertySplitJoinRoundTrip is Property1 [String ]
1860+ class \nodoc\ iso _PropertySplitJoinRoundTrip is Property [String ]
18661861 """
18671862 Splitting a static path into segments and joining them all back produces
18681863 the original path without the leading slash.
0 commit comments