Skip to content

Commit 3782c37

Browse files
committed
TEST: Add package test
1 parent 63bc3b4 commit 3782c37

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

integration_tests/test_pkg_lnn.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from lnn.perceptron import init_perceptron, print_perceptron, normalize_input_vectors
2+
3+
from lpython import i32, f64
4+
5+
6+
7+
def main0():
8+
print("hi")
9+
# p: Perceptron
10+
# init_perceptron(p, 5, 0.05, 100000, 90.0)
11+
# print_perceptron(p)
12+
input_vectors: list[list[f64]] = [[-15.0, -10.0], [-10.0, 10.0], [15.0, -10.0], [10.0, 10.0]]
13+
outputs: list[i32] = [1, 1, 1, -1]
14+
15+
normalize_input_vectors(input_vectors)
16+
print(input_vectors)
17+
main0()

0 commit comments

Comments
 (0)