-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fmt sample, and temp hack to hopefully make the ninja generator w…
…ork on macOS.
- Loading branch information
1 parent
6f69b83
commit f42af64
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
function main() { | ||
var out = haxe.io.Bytes.alloc(16); | ||
var src = haxe.io.Bytes.ofString("Hello World!"); | ||
hl.Format.digest(out.getData(), src.getData(), src.length, 0 /* md5 */); | ||
final expected = "ed076287532e86365e841e92bfc50d8c"; | ||
final got = out.toHex(); | ||
if (got != expected) { | ||
throw 'expected $expected, got $got'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters