Update tests

This commit is contained in:
topecongiro 2017-05-03 11:26:31 +09:00
parent f5da9d779f
commit 6d14ac84a4
8 changed files with 37 additions and 4 deletions

View file

@ -13,6 +13,8 @@ fn main() {
bbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccccccccccc.ddddddddddddddddddddddddddd.eeeeeeee();
let f = fooooooooooooooooooooooooooooooooooooooooooooooooooo.baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar;
// Test case where first chain element isn't a path, but is shorter than
// the size of a tab.
x()

View file

@ -89,3 +89,18 @@ fn foo() {
};
});
}
fn issue1405() {
open_raw_fd(fd, b'r')
.and_then(|file| Capture::new_raw(None, |_, err| unsafe {
raw::pcap_fopen_offline(file, err)
}));
}
fn issue1466() {
let vertex_buffer = frame.scope(|ctx| {
let buffer =
ctx.create_host_visible_buffer::<VertexBuffer<Vertex>>(&vertices);
ctx.create_device_local_buffer(buffer)
});
}

View file

@ -2,5 +2,5 @@
// Chain indent
fn main() {
let lorem = ipsum.dolor().sit().amet().consectetur().adipiscing().elit();
let lorem = ipsum.dolor().sit().amet().consectetur().adipiscing().elite();
}

View file

@ -2,5 +2,5 @@
// Chain indent
fn main() {
let lorem = ipsum.dolor().sit().amet().consectetur().adipiscing().elit();
let lorem = ipsum.dolor().sit().amet().consectetur().adipiscing().elite();
}

View file

@ -13,6 +13,9 @@ fn main() {
.ddddddddddddddddddddddddddd
.eeeeeeee();
let f = fooooooooooooooooooooooooooooooooooooooooooooooooooo
.baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar;
// Test case where first chain element isn't a path, but is shorter than
// the size of a tab.
x().y(|| match cond() {

View file

@ -106,3 +106,16 @@ fn foo() {
};
});
}
fn issue1405() {
open_raw_fd(fd, b'r').and_then(|file| {
Capture::new_raw(None, |_, err| unsafe { raw::pcap_fopen_offline(file, err) })
});
}
fn issue1466() {
let vertex_buffer = frame.scope(|ctx| {
let buffer = ctx.create_host_visible_buffer::<VertexBuffer<Vertex>>(&vertices);
ctx.create_device_local_buffer(buffer)
});
}

View file

@ -8,5 +8,5 @@ fn main() {
.amet()
.consectetur()
.adipiscing()
.elit();
.elite();
}

View file

@ -7,5 +7,5 @@ fn main() {
.amet()
.consectetur()
.adipiscing()
.elit();
.elite();
}