diff options
author | vlakreeh <[email protected]> | 2020-09-29 19:48:43 +0100 |
---|---|---|
committer | vlakreeh <[email protected]> | 2020-09-29 19:48:43 +0100 |
commit | c84fdb8b3ede90db7aff7beaaa90014b0c5e96ba (patch) | |
tree | 9717f547b8242f66d6b1cc3d84e07f0c80ded441 /crates/assists/src/tests | |
parent | e315fd9bb0e0647ab8b0e118d264d2103e271586 (diff) |
Add convert integer literal assist
Diffstat (limited to 'crates/assists/src/tests')
-rw-r--r-- | crates/assists/src/tests/generated.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs index 27d15adb0..7f6e98a54 100644 --- a/crates/assists/src/tests/generated.rs +++ b/crates/assists/src/tests/generated.rs | |||
@@ -204,6 +204,19 @@ pub(crate) fn frobnicate() {} | |||
204 | } | 204 | } |
205 | 205 | ||
206 | #[test] | 206 | #[test] |
207 | fn doctest_convert_integer_literal() { | ||
208 | check_doc_test( | ||
209 | "convert_integer_literal", | ||
210 | r#####" | ||
211 | const _: i32 = 10<|>; | ||
212 | "#####, | ||
213 | r#####" | ||
214 | const _: i32 = 0b1010; | ||
215 | "#####, | ||
216 | ) | ||
217 | } | ||
218 | |||
219 | #[test] | ||
207 | fn doctest_convert_to_guarded_return() { | 220 | fn doctest_convert_to_guarded_return() { |
208 | check_doc_test( | 221 | check_doc_test( |
209 | "convert_to_guarded_return", | 222 | "convert_to_guarded_return", |