Skip to content

Commit 93a3e8a

Browse files
committed
math: fix compilation errors
1 parent 441983c commit 93a3e8a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

math/fib_test.jule

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#build test
22

33
use std::testing::{T}
4+
use slices for std::slices
45

56
#test
67
fn testFib(t: &T) {
78
t.Assert(Fib(6) == 8, "index 6 of fib. should be 8")
8-
t.Assert(FibSeq(6) == [1, 1, 2, 3, 5, 8], "a fib. sequence up to index 6 should be 1, 1, 2, 3, 5, 8")
9+
t.Assert(slices::Equal(FibSeq(6), [1, 1, 2, 3, 5, 8]), "a fib. sequence up to index 6 should be 1, 1, 2, 3, 5, 8")
910
}

math/min_test.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
use std::testing::{T}
44

55
#test
6-
fn testMin(mut t: &T) {
6+
fn testMin(t: &T) {
77
t.Assert(Min(0, -9024, 1, 894, -34) == -9024, "min value should be -9024")
88
}

0 commit comments

Comments
 (0)