Crate math_lib_test

source ·
Expand description

THis is is test library

you add , sub , mul , div two number using this create this is very useful library

Quick Start

To get you started quickly, the easiest and highest-level way to get a random value is to use [random()]; alternatively you can use [thread_rng()]. The [Rng] trait provides a useful API on all RNGs, while the [distributions] and [seq] modules provide further functionality on top of RNGs.

use math_lib_test::{add, sub, take_retrun_string};
fn it_works1() {
   let result = add(2, 2);
   assert_eq!(result, 4);
}

   fn it_works2() {

       let result = sub(4,1);
       assert_eq!(result,3);
}

The Book

For the user guide and further documentation, please read The Rust Rand Book

Modules

Functions