Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Sep 26, 2024
1 parent 6df6ad3 commit 57b49e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
likelyhood"use strict";
"use strict";

var tests_ended = false;

Expand Down Expand Up @@ -251,9 +251,9 @@ async function run_tests (quick=0) {
var medium_random = [0,0.1,1,2,0.5,-1,1,1,1,1,2,0.5];
var real_random = [0.782561374669061,0.435820713729726,0.733394706660089,0.670549480567338,0.0996915503756846,0.0596513498894495,0.981818576945752,0.612811573822079,0.149262201265092,0.339208902617202,0.283748225092307];

test_equal("testing non-random array to have likelyhood 0 of being random", array_likelyhood_of_being_random(not_random) == 0, true);
test_equal("testing medium-random array to have likelyhood 0.3062189184132783 of being random", array_likelyhood_of_being_random(medium_random) == 0.3062189184132783, true);
test_equal("testing real-random array to have likelyhood 1 of being random", array_likelyhood_of_being_random(real_random) == 1, true);
test_equal("testing non-random array to have likelihood 0 of being random", array_likelihood_of_being_random(not_random) == 0, true);
test_equal("testing medium-random array to have likelihood 0.3062189184132783 of being random", array_likelihood_of_being_random(medium_random) == 0.3062189184132783, true);
test_equal("testing real-random array to have likelihood 1 of being random", array_likelihood_of_being_random(real_random) == 1, true);

log_test("Math mode");
var cookie_theme = get_cookie("theme");
Expand Down
1 change: 0 additions & 1 deletion train.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,6 @@ function model_shape_to_string (model_shape) {
}
}

// Beispielaufrufe
//console.log(convertNullToString([1, null, 3])); // Ausgabe: '[1, "null", 3]'
//console.log(convertNullToString([1, 2, 3])); // Ausgabe: '[1, 2, 3]'
//console.log(convertNullToString([null, 1, 2, 3, 4, 5])); // Ausgabe: '["null", 1, 2, 3, 4, 5]'
Expand Down

0 comments on commit 57b49e1

Please sign in to comment.