Skip to content

Commit

Permalink
version 0.1.8 haxelib release
Browse files Browse the repository at this point in the history
  • Loading branch information
maitag committed Jun 12, 2024
1 parent 8856196 commit e21fd57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"license": "MIT",
"tags": ["math", "arbitrary", "precision", "integer", "bigint"],
"description": "pure haxe implementation for arbitrary-precision integer",
"version": "0.1.7",
"version": "0.1.8",
"classPath": "src/",
"releasenote": "new unit test, fixing hxp script for lime 8",
"releasenote": "fix multiplication bug and issue with trunkate zero chunks",
"contributors": ["maitag"],
"dependencies": {}
}
9 changes: 8 additions & 1 deletion test.hx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ import hxp.*;
class Test extends hxp.Script {

public function new() {

super();

var targets:Array<String>;

if (commandArgs.length == 0) targets = ['all'];
else targets = commandArgs.map(function(s) return s.toLowerCase());
Log.info(targets[0]);

// replace 'all' with all available targets
if (targets.indexOf('all') != -1) {
targets[targets.indexOf('all')] = 'neko';
Expand Down Expand Up @@ -77,6 +79,7 @@ class Test extends hxp.Script {
}

private function test (targets:Array<String>) {

Log.info("unit tests for targets: " + targets.join(", ") + "\n");

var base = new HXML ({
Expand Down Expand Up @@ -106,6 +109,7 @@ class Test extends hxp.Script {
}

private function benchmark (targets:Array<String>, benchmarks:Array<String>) {

Log.info("perform benchmarks " + benchmarks.join(", ") + " for targets: " + targets.join(", ") + "\n");

var base = new HXML ({
Expand Down Expand Up @@ -137,6 +141,7 @@ class Test extends hxp.Script {
}

private function build (target:String, base:HXML) {

switch (target) {

case "neko":
Expand Down Expand Up @@ -166,6 +171,7 @@ class Test extends hxp.Script {
}

private function run (target:String, base:HXML) {

switch (target) {

case "neko":
Expand Down Expand Up @@ -215,13 +221,14 @@ class Test extends hxp.Script {
}
else System.runCommand ("bin/cpp", './${base.main}-debug', []);

default: Log.error ("Unknown benchmark or target \"" + target + "\"");
default: Log.error ("Unknown target \"" + target + "\"");

}

}

private function removeDoubles(a:Array<String>) {

var i = a.length;
var j:Int;
while (i-- > 0) {
Expand Down

0 comments on commit e21fd57

Please sign in to comment.