@@ -225,9 +225,9 @@ test "HttpParser from String Contents" {
225225 try std .testing .expectEqualStrings ("Bearer ABC123" , requests .items [0 ].headers .items [1 ].value );
226226 try std .testing .expectEqualStrings ("Authorization" , requests .items [1 ].headers .items [1 ].name );
227227 try std .testing .expectEqualStrings ("Bearer ABC123" , requests .items [1 ].headers .items [1 ].value );
228- try std .testing .expectEqualStrings ("TEST NAME" , requests .items [1 ].name orelse "" );
229- try std .testing .expectEqual (0 , ( requests .items [0 ].body orelse "" ). len );
230- try std .testing .expect (0 != (requests .items [1 ].body orelse "" ).len );
228+ try std .testing .expectEqualStrings ("TEST NAME" , requests .items [1 ].name orelse unreachable );
229+ try std .testing .expectEqual (null , requests .items [0 ].body );
230+ try std .testing .expect (0 != (requests .items [1 ].body orelse unreachable ).len );
231231}
232232
233233test "HttpParser parses assertions" {
@@ -252,5 +252,5 @@ test "HttpParser parses assertions" {
252252 try std .testing .expectEqualStrings ("status" , requests .items [0 ].assertions .items [0 ].key );
253253 try std .testing .expectEqual (AssertionType .equal , requests .items [0 ].assertions .items [0 ].assertion_type );
254254 try std .testing .expectEqualStrings ("200" , requests .items [0 ].assertions .items [0 ].value );
255- try std .testing .expectEqual (0 , ( requests .items [0 ].body orelse "" ). len );
255+ try std .testing .expectEqual (null , requests .items [0 ].body );
256256}
0 commit comments