aboutsummaryrefslogtreecommitdiffstats
path: root/tests/quickcheck.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-16 01:14:04 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-16 01:14:04 -0500
commit1e3ebda4e1d6a2cdfb507cc0ed39aaacf3df0314 (patch)
tree4a66bbaaad6d4fee1d0b4c4abf4f8fe6e2a658c3 /tests/quickcheck.rs
parent2da2800028dd5f65a88d26037acb27c8c906cda7 (diff)
downloadvt100-rust-1e3ebda4e1d6a2cdfb507cc0ed39aaacf3df0314.tar.gz
vt100-rust-1e3ebda4e1d6a2cdfb507cc0ed39aaacf3df0314.zip
clippy
Diffstat (limited to 'tests/quickcheck.rs')
-rw-r--r--tests/quickcheck.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/quickcheck.rs b/tests/quickcheck.rs
index ef94e5e..64fd027 100644
--- a/tests/quickcheck.rs
+++ b/tests/quickcheck.rs
@@ -30,11 +30,11 @@ fn choose_terminal_input_fragment<G: quickcheck::Gen>(g: &mut G) -> Vec<u8> {
Text,
Control,
Escape,
- CSI,
+ Csi,
#[allow(dead_code)]
- OSC,
+ Osc,
#[allow(dead_code)]
- DCS,
+ Dcs,
}
impl rand::distributions::Distribution<Fragment>
@@ -45,7 +45,7 @@ fn choose_terminal_input_fragment<G: quickcheck::Gen>(g: &mut G) -> Vec<u8> {
0u8..=231 => Fragment::Text,
232..=239 => Fragment::Control,
240..=247 => Fragment::Escape,
- 248..=255 => Fragment::CSI,
+ 248..=255 => Fragment::Csi,
}
}
}
@@ -73,18 +73,18 @@ fn choose_terminal_input_fragment<G: quickcheck::Gen>(g: &mut G) -> Vec<u8> {
v.push(c);
v
}
- Fragment::CSI => {
+ Fragment::Csi => {
let mut v = vec![0x1b, b'['];
// TODO: params
let c = g.gen_range(b'@', b'~');
v.push(c);
v
}
- Fragment::OSC => {
+ Fragment::Osc => {
// TODO
unimplemented!()
}
- Fragment::DCS => {
+ Fragment::Dcs => {
// TODO
unimplemented!()
}