From 6d14ac84a40a4eae077a691de4baae885f97ea1c Mon Sep 17 00:00:00 2001 From: topecongiro Date: Wed, 3 May 2017 11:26:31 +0900 Subject: [PATCH] Update tests --- tests/source/chains.rs | 2 ++ tests/source/closure.rs | 15 +++++++++++++++ tests/source/configs-chain_indent-block.rs | 2 +- tests/source/configs-chain_indent-visual.rs | 2 +- tests/target/chains.rs | 3 +++ tests/target/closure.rs | 13 +++++++++++++ tests/target/configs-chain_indent-block.rs | 2 +- tests/target/configs-chain_indent-visual.rs | 2 +- 8 files changed, 37 insertions(+), 4 deletions(-) diff --git a/tests/source/chains.rs b/tests/source/chains.rs index 5987195e031..20d320ccde8 100644 --- a/tests/source/chains.rs +++ b/tests/source/chains.rs @@ -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() diff --git a/tests/source/closure.rs b/tests/source/closure.rs index c9968a996f4..f6e8c093082 100644 --- a/tests/source/closure.rs +++ b/tests/source/closure.rs @@ -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::>(&vertices); + ctx.create_device_local_buffer(buffer) + }); +} diff --git a/tests/source/configs-chain_indent-block.rs b/tests/source/configs-chain_indent-block.rs index 264e96625fe..d77709422b2 100644 --- a/tests/source/configs-chain_indent-block.rs +++ b/tests/source/configs-chain_indent-block.rs @@ -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(); } diff --git a/tests/source/configs-chain_indent-visual.rs b/tests/source/configs-chain_indent-visual.rs index 3c85400daa4..67714d32045 100644 --- a/tests/source/configs-chain_indent-visual.rs +++ b/tests/source/configs-chain_indent-visual.rs @@ -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(); } diff --git a/tests/target/chains.rs b/tests/target/chains.rs index 2b14ec147d4..b8e47607b83 100644 --- a/tests/target/chains.rs +++ b/tests/target/chains.rs @@ -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() { diff --git a/tests/target/closure.rs b/tests/target/closure.rs index c9edec799e2..f6d9a855a33 100644 --- a/tests/target/closure.rs +++ b/tests/target/closure.rs @@ -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::>(&vertices); + ctx.create_device_local_buffer(buffer) + }); +} diff --git a/tests/target/configs-chain_indent-block.rs b/tests/target/configs-chain_indent-block.rs index 89357e55801..b172e293b72 100644 --- a/tests/target/configs-chain_indent-block.rs +++ b/tests/target/configs-chain_indent-block.rs @@ -8,5 +8,5 @@ fn main() { .amet() .consectetur() .adipiscing() - .elit(); + .elite(); } diff --git a/tests/target/configs-chain_indent-visual.rs b/tests/target/configs-chain_indent-visual.rs index 158ad432ffa..ef7dac93f7f 100644 --- a/tests/target/configs-chain_indent-visual.rs +++ b/tests/target/configs-chain_indent-visual.rs @@ -7,5 +7,5 @@ fn main() { .amet() .consectetur() .adipiscing() - .elit(); + .elite(); }