From Fedora Project Wiki

No edit summary
No edit summary
Line 6: Line 6:
# Open a text editor and type in a basic program (one is given for you to execute)
# Open a text editor and type in a basic program (one is given for you to execute)


fn main()  
{{command|1=fn main()  
{
{
     println!("Hello, Rust is running on Fedora now!");
     println!("Hello, Rust is running on Fedora now!");
}
}
}}


# Save this in a file with name convention <filename>.rs
# Save this in a file with name convention <filename>.rs
# Open terminal/konsole  
# Open terminal/konsole  
# Compile the file by executing rustc <filename>.rs
# Compile the file by executing {{command|1=rustc <filename>.rs}}
# Execute ./<filename>
# Execute {{command|1=./<filename>}}
|results=
|results=
# Hello, Rust is running on Fedora now! - will be displayed
# Hello, Rust is running on Fedora now! - will be displayed
}}
}}
[[Category:Package_rust_test_cases]]
[[Category:Package_rust_test_cases]]

Revision as of 09:03, 1 February 2017

Description

This test case tests whether you complies the programs correctly.

Setup

  1. Ensure the Package-x-generic-16.pngrust package is installed

How to test

  1. Open a text editor and type in a basic program (one is given for you to execute)

fn main() {

   println!("Hello, Rust is running on Fedora now!");

}

  1. Save this in a file with name convention <filename>.rs
  2. Open terminal/konsole
  3. Compile the file by executing rustc <filename>.rs
  4. Execute ./<filename>

Expected Results

  1. Hello, Rust is running on Fedora now! - will be displayed