nandi/rustnimpublic Fork 0
main
Commits
Clone
git clone https://git.rickub.com/nandi/rustnim.git
git clone ssh://git@rickub.com/nandi/rustnim.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

014-chars.rs · 10 lines · 348 BRust Blame HistoryRaw
Add the differential test runner, and a lowering to measure with it 8ac32af nandithebull 6h ago1// DESIGN.md open question 4: Rust `char` is a Unicode scalar, mapped to Nim's
2// `Rune`. This checks the round trip, including a non-ASCII scalar.
3fn main() {
4 let a: char = 'a';
5 let z: char = 'ζ';
6 println!("{} {}", a, z);
7 println!("{:?} {:?}", a, z);
8 println!("{} {}", a as u32, z as u32);
9 println!("{}", 955u32 as u8);
10}