com-croftsoft-core 0.14.0

A core library of highly reusable code
Documentation
// =============================================================================
//! - Unit tests for the Security module operation implementations
//!
//! # Metadata
//! - Copyright: © 2001 - 2022 [`CroftSoft Inc`]
//! - Author: [`David Wallace Croft`]
//! - Rust version: 2022-11-21
//! - Rust since: 2022-11-21
//! - Java version: 2003-06-17
//! - Java since: 2001-04-12
//!
//! # History
//! - Adapted from the classes in the Java-based [`CroftSoft Core Library`]
//!   - com.croftsoft.core.security.Authentication
//!
//! [`CroftSoft Core Library`]: https://www.croftsoft.com/library/code/
//! [`CroftSoft Inc`]: https://www.croftsoft.com/
//! [`David Wallace Croft`]: https://www.croftsoft.com/people/david/
// =============================================================================

use crate::security::structures::Authentication;

#[test]
fn test_partial_eq() {
  let auth0: Authentication = Authentication {
    password: String::from("p0"),
    username: String::from("u0"),
  };
  let auth1: Authentication = Authentication {
    password: String::from("p1"),
    username: String::from("u1"),
  };
  assert!(auth0 == auth0);
  assert!(auth1 == auth1);
  assert!(auth0 != auth1);
}