crypto-invert 1.0.1

Unicode Upside-Down Mapping
Documentation
  • Coverage
  • 33.33%
    2 out of 6 items documented2 out of 4 items with examples
  • Size
  • Source code size: 20.21 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.88 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • oovm/crypto-moe
    9 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • oovm

Unicode Invert Text

extern crate crypto_invert;
use crypto_invert::{decode, encode};

#[test]
fn test_encoding() {
    let r1 = encode("i love you!");
    let r2 = encode("I LOVE YOU!");
    assert_eq!(r1, "ᴉ ꞁoʌǝ ʎon¡");
    assert_eq!(r2, "I ꞀOɅƎ ⅄O∩¡");
}

#[test]
fn test_decoding() {
    let r1 = "i love you!";
    let r2 = "I LOVE YOU!";
    assert_eq!(decode(&encode(r1)), r1);
    assert_eq!(decode(&encode(r2)), r2);
}