mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix tests
This commit is contained in:
parent
9942f77226
commit
1dec7e6e7d
3 changed files with 516 additions and 518 deletions
|
|
@ -501,10 +501,10 @@ mod tests {
|
|||
bitvalue = (keyrom[coord[0]] & (1 << coord[1]))
|
||||
if bitvalue != 0:
|
||||
wordvalue |= (1 << bit)
|
||||
f.write(' assert_eq!(crate::patch_frame({}'.format(frame_rec[0]) + ', ' + '{}'.format(word) + ', &ROM), (Some(' + '0x{:08x}'.format(wordvalue) + '), Some(!0x{:08x}'.format(wordvalue) + ')));\n')
|
||||
f.write(' assert_eq!(crate::key2bits::patch_frame({}'.format(frame_rec[0]) + ', ' + '{}'.format(word) + ', &ROM), Some((' + '0x{:08x}u32'.format(wordvalue) + ', !0x{:08x}u32'.format(wordvalue) + ')));\n')
|
||||
|
||||
f.write(' // also test the null case, frame 0 should typically have no mappings.\n')
|
||||
f.write(' assert_eq!(crate::patch_frame(0x0, 0, &ROM), (None, None) );\n')
|
||||
f.write(' assert_eq!(crate::key2bits::patch_frame(0x0, 0, &ROM), None );\n')
|
||||
f.write("""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -377,8 +377,6 @@ mod bcrypt;
|
|||
// some short tests to just confirm we're not totally broken.
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn hash_with_fixed_salt() {
|
||||
let salt: [u8; 16] = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue