std_tools 0.1.4

Collection of general purpose tools for solving problems. Fundamentally extend the language without spoiling, so may be used solely or in conjunction with another module of such kind.
Documentation

// use test_tools::*;
use super::*;

//

tests_impls!
{
  fn basic()
  {
    use TheModule::string::indentation;

    /* test.case( "basic" ) */
    {
      let src = "a\nbc";
      let exp = "---a\n---bc";
      let got = indentation( "---", src, "" );
      a_id!( got, exp );
    }

    /* test.case( "empty string" ) */
    {
      let src = "";
      let exp = "---";
      let got = indentation( "---", src, "" );
      a_id!( got, exp );
    }

    /* test.case( "two empty string" ) */
    {
      let src = "\n";
      let exp = "---\n---";
      let got = indentation( "---", src, "" );
      a_id!( got, exp );
    }

  }
}

//

tests_index!
{
  basic,
}