1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

bitfield: minor documentation and function tweaks (#10549)

This commit is contained in:
Rémi
2021-06-24 07:27:04 +03:00
committed by GitHub
parent 1469b47f7d
commit c0b53048f5
3 changed files with 28 additions and 3 deletions

View File

@ -68,7 +68,7 @@ fn test_clone_cmp() {
}
output := input.clone()
assert output.get_size() == len
assert input.cmp(output) == true
assert input == output
}
fn test_slice_join() {
@ -86,7 +86,7 @@ fn test_slice_join() {
chunk2 := input.slice(point, input.get_size())
// concatenate them back into one and compare to the original
output := bitfield.join(chunk1, chunk2)
if !input.cmp(output) {
if input != output {
result = 0
}
}