Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
forFudan committed Feb 6, 2025
1 parent 3f45855 commit e38aaa9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions recipes/numojo/tests.mojo
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import numojo as nm
from numojo.prelude import *
from numojo import mat
from python import Python, PythonObject
from testing.testing import assert_raises, assert_equal, assert_true, assert_almost_equal
from testing.testing import (
assert_raises,
assert_equal,
assert_true,
assert_almost_equal,
)


fn check[
Expand Down Expand Up @@ -39,6 +43,7 @@ def test_arange():
"Arange is broken",
)


def test_linspace():
var np = Python.import_module("numpy")
check(
Expand All @@ -47,7 +52,7 @@ def test_linspace():
"Linspace is broken",
)


def main():
test_arange()
test_linspace()

0 comments on commit e38aaa9

Please sign in to comment.