Skip to content

Commit 996e060

Browse files
committed
Integration test
1 parent 9eb5d95 commit 996e060

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/language/test/language_test.gleam

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,17 @@ fn bit_array_tests() -> List(Test) {
10531053
rest
10541054
})
10551055
}),
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+
}),
10561067
]
10571068
}
10581069

0 commit comments

Comments
 (0)