|
|
@ -4,7 +4,7 @@ |
|
|
|
///
|
|
|
|
///
|
|
|
|
/// # Example
|
|
|
|
/// # Example
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
/// # let _runner = test_runner::GdbRunner::default();
|
|
|
|
/// # // let _runner = test_runner::GdbRunner::default();
|
|
|
|
/// let firm_version = ctru::os::firm_version();
|
|
|
|
/// let firm_version = ctru::os::firm_version();
|
|
|
|
/// assert_ne!(firm_version.major(), 0);
|
|
|
|
/// assert_ne!(firm_version.major(), 0);
|
|
|
|
///
|
|
|
|
///
|
|
|
@ -61,7 +61,7 @@ pub fn kernel_version() -> Version { |
|
|
|
///
|
|
|
|
///
|
|
|
|
/// # Example
|
|
|
|
/// # Example
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
/// # let _runner = test_runner::GdbRunner::default();
|
|
|
|
/// # // let _runner = test_runner::GdbRunner::default();
|
|
|
|
/// let all_memory = ctru::os::MemRegion::All;
|
|
|
|
/// let all_memory = ctru::os::MemRegion::All;
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// assert!(all_memory.size() > 0);
|
|
|
|
/// assert!(all_memory.size() > 0);
|
|
|
@ -111,7 +111,7 @@ impl MemRegion { |
|
|
|
/// # Example
|
|
|
|
/// # Example
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
/// # let _runner = test_runner::GdbRunner::default();
|
|
|
|
/// # // let _runner = test_runner::GdbRunner::default();
|
|
|
|
/// let strength = ctru::os::WifiStrength::current();
|
|
|
|
/// let strength = ctru::os::WifiStrength::current();
|
|
|
|
/// assert!((strength as u8) < 4);
|
|
|
|
/// assert!((strength as u8) < 4);
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|