Skip to content

Commit

Permalink
Fix syntax errors in test
Browse files Browse the repository at this point in the history
  • Loading branch information
dinfuehr committed Oct 23, 2024
1 parent f4d426c commit 0ab91f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/stdlib/num-hash.dora
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ fn main() {
assert(1i32.hash() == 1i32);

assert(1i64.hash() == 1i32);
assert((1 << 32i).hash() == (1 ^ 0));
assert((1 << 31i).hash() == (1 << 31i));
assert((1 << 32i32).hash() == (1i32 ^ 0i32));
assert((1 << 31i32).hash() == (1i32 << 31i32));

assert(1.0f32.hash() == 1065353216i32);
assert(1.0.hash() == 1072693248);
assert(1.0.hash() == 1072693248i32);
}

0 comments on commit 0ab91f5

Please sign in to comment.