2019-07-26 21:54:25 +00:00
|
|
|
|
// run-pass
|
2014-07-21 22:57:14 +00:00
|
|
|
|
//
|
2018-09-14 10:20:28 +00:00
|
|
|
|
#![allow(non_snake_case)]
|
2012-12-11 01:32:48 +00:00
|
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
|
pub fn main() {
|
2014-04-21 21:58:52 +00:00
|
|
|
|
let ε = 0.00001f64;
|
|
|
|
|
let Π = 3.14f64;
|
2011-12-29 22:45:18 +00:00
|
|
|
|
let लंच = Π * Π + 1.54;
|
2014-11-09 05:59:28 +00:00
|
|
|
|
assert!(((लंच - 1.54) - (Π * Π)).abs() < ε);
|
2013-05-19 02:02:45 +00:00
|
|
|
|
assert_eq!(საჭმელად_გემრიელი_სადილი(), 0);
|
2011-12-29 22:45:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-03-26 00:06:52 +00:00
|
|
|
|
fn საჭმელად_გემრიელი_სადილი() -> isize {
|
2011-12-29 22:45:18 +00:00
|
|
|
|
|
|
|
|
|
// Lunch in several languages.
|
|
|
|
|
|
2015-01-25 21:05:03 +00:00
|
|
|
|
let ランチ = 10;
|
|
|
|
|
let 午餐 = 10;
|
2011-12-29 22:45:18 +00:00
|
|
|
|
|
2015-01-25 21:05:03 +00:00
|
|
|
|
let ארוחת_צהריי = 10;
|
2015-02-18 10:42:01 +00:00
|
|
|
|
let غداء = 10_usize;
|
2015-01-25 21:05:03 +00:00
|
|
|
|
let լանչ = 10;
|
|
|
|
|
let обед = 10;
|
|
|
|
|
let абед = 10;
|
|
|
|
|
let μεσημεριανό = 10;
|
|
|
|
|
let hádegismatur = 10;
|
|
|
|
|
let ручек = 10;
|
2011-12-29 22:45:18 +00:00
|
|
|
|
|
2015-01-25 21:05:03 +00:00
|
|
|
|
let ăn_trưa = 10;
|
|
|
|
|
let อาหารกลางวัน = 10;
|
2011-12-29 22:45:18 +00:00
|
|
|
|
|
|
|
|
|
// Lunchy arithmetic, mm.
|
|
|
|
|
|
2013-05-19 02:02:45 +00:00
|
|
|
|
assert_eq!(hádegismatur * ручек * обед, 1000);
|
2015-01-25 21:05:03 +00:00
|
|
|
|
assert_eq!(10, ארוחת_צהריי);
|
2013-05-19 02:02:45 +00:00
|
|
|
|
assert_eq!(ランチ + 午餐 + μεσημεριανό, 30);
|
|
|
|
|
assert_eq!(ăn_trưa + อาหารกลางวัน, 20);
|
2012-08-02 00:30:05 +00:00
|
|
|
|
return (абед + լանչ) >> غداء;
|
2011-12-29 22:45:18 +00:00
|
|
|
|
}
|