We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb5d95 commit 996e060Copy full SHA for 996e060
test/language/test/language_test.gleam
@@ -1053,6 +1053,17 @@ fn bit_array_tests() -> List(Test) {
1053
rest
1054
})
1055
}),
1056
+ "matching zero length segment"
1057
+ |> example(fn() {
1058
+ let size = 0
1059
+ let data = <<>>
1060
+ assert_equal("ok", {
1061
+ case data {
1062
+ <<_:bytes-size(size), _:bytes>> -> "ok"
1063
+ _ -> "this cause should not be reached"
1064
+ }
1065
+ })
1066
+ }),
1067
]
1068
}
1069
0 commit comments