mirror of
https://github.com/pezkuwichain/kurdistan_blockchain-akademy.git
synced 2026-06-13 17:31:06 +00:00
fmt, allow unused
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
//! code snippets**. You may only trace them manually in your head or on paper. Pretend that this
|
||||
//! portion of the exam is being administered on paper, and no computer is available at all.
|
||||
//!
|
||||
//! To enable us to auto-grade your answer, you implement the code that returns the `char` representing
|
||||
//! your answer.
|
||||
//! To enable us to auto-grade your answer, you implement the code that returns the `char`
|
||||
//! representing your answer.
|
||||
//!
|
||||
//! If you would like a rendered and styled version of these questions simply build an open the Rust
|
||||
//! Docs for this module, and navigate the the multiple choice question module docs by the command:
|
||||
|
||||
+6
-2
@@ -87,10 +87,11 @@ mod tests {
|
||||
assert_eq!(macro_generated, expected);
|
||||
}
|
||||
|
||||
#[allow(unused_imports)]
|
||||
#[test]
|
||||
fn impl_get() {
|
||||
use super::Get;
|
||||
|
||||
|
||||
impl_get!(
|
||||
// should generate `struct Foo` that implements `Get<u32>`
|
||||
Foo: u32 = 10;
|
||||
@@ -104,7 +105,10 @@ mod tests {
|
||||
// assert_eq!(Foo::get(), 10);
|
||||
// assert_eq!(Bar::get(), 42);
|
||||
// assert_eq!(Baz::get(), 21);
|
||||
assert_eq!(true, false, "Make sure to remove this line and uncomment the tests above");
|
||||
assert_eq!(
|
||||
true, false,
|
||||
"Make sure to remove this line and uncomment the tests above"
|
||||
);
|
||||
|
||||
// As an extra, ungraded, challenge, try to make this work.
|
||||
// This is not part of the main problem because it requires the nightly compiler.
|
||||
|
||||
Reference in New Issue
Block a user