Use macro style for more internal helpers; Update dist files

This commit is contained in:
dcodeIO
2018-12-08 23:38:49 +01:00
parent b585703eae
commit 3ed83ef3ae
37 changed files with 544 additions and 543 deletions

View File

@ -1,25 +1,25 @@
import { hash } from "internal/hash";
import { HASH } from "internal/hash";
function check(hash: u32): bool {
return true;
}
check(hash<string>(null));
check(hash<string>(""));
check(hash<string>("a"));
check(hash<string>("ab"));
check(hash<string>("abc"));
check(HASH<string>(null));
check(HASH<string>(""));
check(HASH<string>("a"));
check(HASH<string>("ab"));
check(HASH<string>("abc"));
check(hash<f32>(0.0));
check(hash<f32>(1.0));
check(hash<f32>(1.1));
check(hash<f32>(-0));
check(hash<f32>(Infinity));
check(hash<f32>(NaN));
check(HASH<f32>(0.0));
check(HASH<f32>(1.0));
check(HASH<f32>(1.1));
check(HASH<f32>(-0));
check(HASH<f32>(Infinity));
check(HASH<f32>(NaN));
check(hash<f64>(0.0));
check(hash<f64>(1.0));
check(hash<f64>(1.1));
check(hash<f64>(-0));
check(hash<f64>(Infinity));
check(hash<f64>(NaN));
check(HASH<f64>(0.0));
check(HASH<f64>(1.0));
check(HASH<f64>(1.1));
check(HASH<f64>(-0));
check(HASH<f64>(Infinity));
check(HASH<f64>(NaN));