etcs-proto-rs

A rust implementation of the "System Requirements specification Chapter 8 messages" Specification of the "ETCS B3 R2 GSM-R B1" standard version 3.6.0
git clone git://archive.git.mtrnord.blog/MTRNord/etcs-proto-rs.git
Log | Files | Refs | README | LICENSE

lib.rs (216B)


      1 pub fn add(left: usize, right: usize) -> usize {
      2     left + right
      3 }
      4 
      5 #[cfg(test)]
      6 mod tests {
      7     use super::*;
      8 
      9     #[test]
     10     fn it_works() {
     11         let result = add(2, 2);
     12         assert_eq!(result, 4);
     13     }
     14 }